Added test for login (some still missing)
Added node-mocks-http, improved tests a bit