added steupup to backend + tests. code quality refactor
converted tests to use jasmine-node-promises