add maintainer header
major refactoring. Kept the jsonrpc lib, but otherwise, everything is changed