Fix for running process_flight locally, providing tail number to hook
Added json support to the local api handler.