The Mozilla Toolkit is a set of programming interfaces (APIs) built on top of Gecko which provide advanced services to XUL applications. These services include:
Profile management
Chrome registration
Browsing history
Extension and theme management
Application update service
Safe mode
Printing
Official references
Structure of an Installable Bundle: describes the common structure of installable bundles, including extensions, themes, and XULRunner applications