Addinng Sinon.js mocks

Adds api mocks using Sinon.js instead of using the auth server.