Login / logout now redirect back from where they were invoked.

Also added a "Logout successful" message while we're at it.
Implemented a JavaScript modal login form.