[DB] refactored;
[Bugfixes];
[Auth] started refactoring;
Merge branch 'master' of github.com:webvariants/susi

Conflicts:
	test/auth/auth_events_test.cpp