Test AMD

1. Introduce AMD.
2. Separate SettingsCache, PageTransition, and PanelUtils.