Fixed lack of redirect in discuss.
Fixed remaining non-redirecting login pages.

activate.php, register.php, and register.js login links now redirect to /index.php.
If there is no from argument to login or logout, they will redirect to /index.php.