Pull the main app into a custom element so we have a place for global logic.