Make Application.php more testable

move method calls to the start bootstrap file, for more testable codebase