Added getheight
Use rapidjson for all JSON processing in handlers. Added handler for getblocks.