Refactored out backend mock code from common.js into backend.js. All code that recide in common.js will work with an external api. backend.jsis as isolated as possible, so few changes has to be made if external api should be used in the future. Also login and logout is working
userId is also put in the rootscope at login. This will make it easier to do context sensitive backend requests
Merge pull request #16 from olavvatne/login

Login