adding fat free, updating the api, adding routing, and  applying template