Added create update posts controllers and views. Added flash message handling to app layout.