Moved doctrine knowledge into a manager class

The controller didn't need to know about the implementation
details of doctrine, it only needs to know that our application
can provide some blog posts objects. Therefore we introduce
a "Manager" class whose job it is to do that.