Delete session.redirectUrl after use.

- deletes redirectUrl from the session after redirecting.
Add pre-commit hook (run unit tests)
Merge pull request #29 from JoeChapman/fix/delete-session-redirect

Fix/delete session redirect