Statics are evil refactoring

Removed use of statics - injected instead of fetched
and tests
More statics are evil

None adapter is now all tested
Tests for storage for auth

Mongo, file and in memory (none)
Fixed storage tests again
Rest of testing and auth code

There are still 2 erroring and 1 failing integration tests
but that looks to be related to _id changes and should be fixed
when _id stuff is complete