Redirect to where you came from when logging in or out.

(out of ideas for how to do this without JS, so somoene feel free
to englighten me)