Improved AMD defines and requires. Modules properly encapsulated, dependencies properly pathed and shimmed. Added app menu trigger with icon. Cleaned up HTML.