Replace index.php with a controller

@LukasReschke 
Yep