Added a flash message manager and messages for common error cases and some success messages.