Refactor HQ into it's own handler

This is moving all of the HQ logic into it's own area and cleaning up the boundary around the wifi/backpack management.