Group analytics functions for testing.
Add spec for router.
Change register success url.
Fix index redirect.
Split db from initial function.
Add email validation.
Add error to register route.