Moved flash messages to a view partial, and added javascript handling of their disposal