implement support for controllers, this helps with #22

with this pull request, it is possible to addionally register a controller for a resource to do all kinds of stuff, because the controller has access to the request and the struct from the resource