added logging, js tests work, accounts initialized

logging set in settings, accounts app files made, js files moved and
restructured and tests run properly
js tests for login

using sinon for mocking in js, sign in testing using js (part 1)