Bug 960694. Support writing out classes with JS implementations of classinfo. r=bsmedberg

--HG--
extra : rebase_source : 6eb91d99f710b366fc2ffab5defea0969834633f