-- Refactored code for conformance to current specs. There are too many changes for a detailed list; here's a
short summary of the changes:
	* Reworked the state machine to encapsulate each state in its own function
	* Encapsulated state data
	* Encapsulated MAVLink and other I/O handling
-- Implemented Self Test, Disarmed, and Armed state functions