Initial work for the Firefox add-on

This pull request is open for code review.