Added some details about authentication handling.

This details are more or less copied directly from [Authentication management in Composer](http://seld.be/notes/authentication-management-in-composer).

I don't want to take credits for this at all, I just needed it again and again, so I added it to the documentation. Hope the location is correct.