Greetings clo1,
Thanks for posting your code. I've skimmed it and would like to assist if possible (I can perhaps help with gitian, builds, and tests). In the interest of more easily auditing/maintenance would it be possible to add your commits on top of the latest 0.16 code from upstream, preserving the git history? Also, it might be easier to not unnecessarily rename files to ease future merges.
For instance, I've created a new github organization:
https://github.com/riecointeam/riecoinIf you put your changes on the master branch it might make things more clear. (Or gatra can update riecoin/riecoin.git master to 0.16, whatever.)
FWIW, I don't have an interest in taking a share of your rightly deserved bounty.
Nice work!