refactor(login): update to use resolve for login in app.js
chore(login): clean up and add comments
fix(login): change to use json.parse vs eval
Merge pull request #120 from lithiumtech/feature/NOW-244

Feature/now 244