Moved a lot from index.php into a new Saros\Application class.