Front end: routes, register, login. Token handling.