Update to rgkit master (and a bunch of other stuff)

I updated rgcompare to work with the latest rgkit, but also reformatted the whole file, and removed stuff that seemed to be unused, so a lot of things have changed. If you don't like this, you can pick out only the changes that actually needed to be changed, it's basically this commit: https://github.com/Sh4rK/rgcompare/commit/cc027ee199908ba35192346630d71c364928fedd