* Cleanup shutdown and peers subscribe
this has errors currently, need to figure out data race
* fixed data race finally....
* getclaimbyid and search
* hook jsonrpc peers subcribe into current federation
* cleanup some peers stuff
* remove commented code
* tie into session manager in jsonrpc peers subscribe
* use int for port args
* cleanup and fix a bunch of compiler warnings
* use logrus everywhere
* cleanup test