added key validation to update.json
test for api helper requireKey
removed baseTests, since it was just a excuse for double test of the same module
added tests for api helper handling
added validation endpoint for keys
a bit of refactoring and clean up
Removed direct database mock, added mock for apihelper