Removed BaseApplication entirely, various bugfixes.