added isFF, isChrome and isSafari
added HACK for clearing src attribute in FF
changed error response in AuthenticationHandler