added memory pool
fix jsonrpc bugs.
added singlethread option for servers
fix crash bug