Bug 964180 - Use AMD in settings app

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