More flexible page layouts

The current implementation restricts what can be displayed on a certain page. I've reimplemented the context handling as a Symfony service and modified the actions so they can be directly rendered in the templates.