Add definition script for extension (experimental)

This is written in a hypothetical, Ruby-based DSL.  It won't do anything
until someone (hopefully me) writes the framework that takes this and
magically turns it into a browser extension.