Fix for flash messages with link in rails 4, add return to in session, and remove some unwanted messages