Move not UI-related torbutton.js code to XPCOM component/service
torbutton_init()
is the entry point: we should start there, find out which code does not need to be loaded for every window and move it to a new or existing component.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information