Fixed the redirect back to current page (after sign in, sign out, sign up, update) like
suggested on devise wiki.