common result for signup and login
login/signup response as json
removed unused method and cleanup
fixed test
Merge pull request #64 from swampie/master

Signup/Login response unification