Malformed URL on connecting to Github

Currently the Github is accessed via the following URL pattern:
http://username:password@api.github.com/
When a user has a : or @ in the password this breaks the URL since the Github parser will get the wrong part of the string. For example:
http://username:mypass@x@api.github.com/ fails with the error that it cannot connect to @x@api.github.com. This happened at the PBF during JD14NL.

Instead of sending the username and password in the URL,this patch proposes to send it via the header thus eliminating any issues with the URL. 

Thanks also to @yireo for his help :)

P.s. I have no idea what the file of JM is doing in this PR :/