Addsource jsonrpc

Took out the addsource jsonrpc from the headless addition. @Montellese to review
Oh right, bad copy of the code in sources settings :)