Renamed "router" to "hooks"

It's a list of callback.

This new name better fit what it really is.
Added routes for login / register fail

Added a SetRoute mechanism to determine
the fallback redirect path when login
or register failed.