Use the new extension API from bug 753401:

https://bugzilla.mozilla.org/show_bug.cgi?id=753401
Update to the latest debugger server API changes.
Merge pull request #1 from past/master

Misc fixes