resource controller style (needs tests)
Added sinon and supertest
Some refactoring for testability
My first working functional test!