added cross domain, fixed doesUsernameExist, generateToken