Refactored application bootstrap