login now accepts nsdict for login data [AGIOS-35]
Added (deprecated) login:username:password hook to avoid backward comp. issues.