Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence

--HG--
extra : rebase_source : c8806b27677594925ad0e6b54c47af5cf17e1153