Okay, I have the extension basically working now. Here is an example interaction: http://paste.pocoo.org/show/p9D2BPepVbv4FtxWUqkV/ Could I get a quick code review, please? I'm probably making all kinds of mistakes: http://paste.pocoo.org/show/64sjv6UkedPOeO5ZQrB7/