add dependencies

they are managed with bower, except sinon
add sinon@1.10.2
add first set of red tests
Fixed broken complete callback for login
Add complete for login, and use code style of the lib