improved tests, fixed coverage, added protractor for end to end tests which support mocha with chai-as-promised, reversed to angular 1.2.7