Bug 964180 - Introduce AMD
1. Support new panel model
2. Separate common logic to SettingsCache, PanelUtils, PageTransitions
Bug 964180 - Add build script
Fix build script