Added ConsoleCommand, and an example to go with it
Added default behaviour to all mods
Merge pull request #5253 from Unit158/console

Closes #4131