Using use statement; Refactored posts namespace.

I found out about the use statement which cleaned up the way I was
referencing objects. In the process of going through the project I found
that it was very easy to do some refactoring to posts_controller and
correspondingly to posts.php page.