Updates application controller to prevent CSRF
Added the posts controller