simplfification
fixed handling of error args for login fails
pass the error argument to loginFailed
fixed examples
added some docs on callback handler
there's no Function.bind in PhantomJS
no need to name the callbacks "xzyCallback"