changed resource to new promise api, included angular1.2.0...
added basic login
working login / logout