MAJOR: Largely fixed the tests (almost all work again, except CLI tests), replaced global --config option with --localdir option, removed possibility to override appDir, cacheDir, logDir and databaseDir (easier for now); MINOR: removed --folder option from InitCommand and ConnectCommand (replaced by global --localdir option)