RC delegation feature
fixes #15 (closed)
I ported a lot of changes from the smt branch then made modifications to it to make it work on the current version of the chain. I am still undecided to what extent we should add some of the SMTs changes (like resources costs) but I figured we might as well leave them there and use them when we work on smts.
I did a bit of testing, but I still need to test it on a replayed node.