Endpoint injection

Actually provide a way to run the app, and inject some endpoints. Messy, but works!