interface for initializing db, which is implemented for appdatabase and walletdatabase. TBD for multiaccounts DB. Unified DB initializion for all tests using helpers and new interface. Reduced sqlcipher kdf iterations for all tests to 1.
* Add permissions api * Integrate permissions service * Reduce cyclomatic complexity of the MakeNode function