Replace index.php with a controller

@LukasReschke