Cleaned the login process and integrated it.

It now all takes place on the index, and it dynamically loads suitable
pages.
Added to-do list. todo.md