Fixed support for branches, and added support for user:pass combination in URLs