A hello world example from the slimframework docs
add pimple, connect to database
add an eventmodel and fetch events with it
fixing a mismatched method name
add the json output handler
add the endpoint for a single event also