continue fruitless development

* Move initial init away from the homepage to minimise requests
* Make index.php the endpoint for everything
* Add flash message
* Do other things