Addsource jsonrpc

Took out the addsource jsonrpc from the headless addition. @Montellese to review
Shouldn't this be done after processing the paths for username and password?