Added support for user:pass and :port in URLs