Use three argument form for all endpoints
Update submodule
Now works with (and requires) XULRunner 21 or newer

Fixes #4 and #5

Needs testing on non-OS X platforms