Addsource jsonrpc

Took out the addsource jsonrpc from the headless addition. @Montellese to review
size_t?