Modes are currently placed in a modes.c file and
compiled as part of sleepit. We should move to a true
plugin architecture and ldopen files that can be
compiled separately from sleepit.
No functionality should be lost in this move. No other
details are important to me.