Addsource jsonrpc

Took out the addsource jsonrpc from the headless addition. @Montellese to review
Oooops, yeah it probably should