Generate classes based on the mozilla parser api

- now can filter based on types
Unfortunately, we're going to have trouble in 2.6 with this.