How does one go about creating cordova plugins on Firefox OS?

I've got a cordova plugin that I've written for iOS and Android that I'd like to add firefox OS support to. Specifically, it enumerates the fonts that have been installed on the mobile device (my use case is a mostly-offline editor / translation tool).

It looks like firefox OS uses the Android Open Source Project at a lower layer of its OS called [Gonk](https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gonk). But, it also looks like Gronk is buried a couple layers deeper than the applications live. Is this where I need to be writing the plugin code? It doesn't seem like code written there would be exposed through the gecko / gaia layers, and unfortunately the [Cordova plugin developer's guide](http://cordova.apache.org/docs/en/4.0.0/guide_hybrid_plugins_index.md.html) doesn't have any info on where to begin.