Replace index.php with a controller

@LukasReschke 
Can also be injected - though minor issue.