Add jsonrpc stuff, incomplete
Merge branch 'jsonrpc' of github.com:dvanliere/bingle into jsonrpc