Merge "Use Application#registerLifecycleEvents() instead of a Fragment for Beam."