Replace index.php with a controller

@LukasReschke 
Use space instead of tab to enforce type.