Use mocha; factor out auth service