Addsource jsonrpc

Took out the addsource jsonrpc from the headless addition. @Montellese to review
This looks wrong. You're looping over paths and adding to it. With an iterator you can just replace the value in the vector and move on to the next path.