Added handler decorators.
Changed protocol to a jsonrpc like protocol.