Application Logic / Command handler

Added RS-232 command processor and basic command handlers. Updated
buffer and trigger delay code to accommodate the new command handlers.
Added debug functionality to UART for test purposes.