modules: refactor to base modules on a WPModule baseclass

This change includes changes for all of the 'standard' modules
loaded by default.
devel: Install a dumpstacks handler on SIGQUIT

If you send QUIT to Mavproxy it will dump stack traces on all threads.