Add a parse method to the credentials objects.

Can now create a HttpBasic instance with simple userinfo style (user:pass)
input.
Found a way to better test the credentials objects.