rhogen: first drop of Entity generator extension for JS
rhogen: generate stub implementation in cpp file, minor fixes in js template