Bugfixes + Command Manager Plugin

This pull request includes some bugfixes to core modules + a Command Manager plugin (originally an extplugin: https://github.com/FenixXx/b3-plugin-cmdmanager). Since this plugin is not game dependent I thought about including it by default in the next b3 release.