fixes userApi.reset()

should keep login url if set.
Adds a default return url.

If not set, the return url should be the current url
Merge pull request #5 from dinoboff/fix-login

Fix login