refactoring

Factored out the app class from the boot.php file for clarity.