Again, should talk to the Firefox DevTools team. They're already building much of this type of stuff for web development.