Fix Dredd / Gavel.js interface. Closes #46

See #46 for details.