Added check for bootloader status in all high-level commands; these will enter and exit bootloader as needed on their own now. Moved version, command set, and PID requesting and logging to the agent. Cleaned up old test code.