redirect users back to most recently viewed page after login

user story https://www.pivotaltracker.com/story/show/64997344
based on recommendations at the devise wiki
https://github.com/plataformatec/devise/wiki/How-To:-Redirect-back-to-current-page-after-sign-in,-sign-out,-sign-up,-update
with slight modifications to request paths that are ignored in the store location method.
there is a ruby shorthand for matching: { |pattern| request.path =~ %r(pattern) }