Bug 416336 - Create Generic Editor. Refactor editor code out of setup.js. No major changes except for: turn settings wrench button into a command and improve layout of settings drop down.