Refactoring:Add flash messages.Remove instance variables

1) Add flash messages back into Application controller

2) Remove useless instance variables from posts#destroy

3) Extract login authentication from ApplicationController into only
PostsController