modules: added mp_module class

this will be the new template class for all modules
refactor core code for new module structure
modules: refactor modules for new structure
module: fixed vehicle_name, say and logdir
antenna: fixed mavlink_packet()
arm: fixed throttle arming
console: fixed link delay calculation
fence: fixed fence logdir and display
graph: fixed passing packets to graphs
map: fixed wp load last change time
param: fixed fetch completions
fixed module unload and reload