Replace index.php with a controller

@LukasReschke 
Also here I'd read the appname from the container