Basic blueprint for api endpoints setup, added app factory function.