Adding in settings.h, since it is referenced so much in cmd.h.
Updates to cmd.c/.h to provide a task. Most other things should be the same.