Add support for Firefox OS (updated)

This is a resubmission of PR #93, rebased against a more recent master branch.

Looks like @mwbrooks and/or @timkim might be interested in these changes?

(FWIW, I'm starting to take some baby steps in picking up some of what rodms10 was working on. Any feedback is very welcome, since I'm totally new on this stuff.)