Changed BasicAuthenticationHandler to use indexOf method instead a split since passwords could contain colons.

According to the RFC (http://www.ietf.org/rfc/rfc2617.txt), it is valid
for the password to contain a colon ':' character.