Refactored Flight microframework into lib/ directory