Move moodle-independent commands into generic namespace