add jsonrpc
keep some compliers happy
add proper 'inline' macros for gnuc family
add basic jsonrpc requests/responses