few small followup fixes
start encapsulating js commands and entities
some fixes to scene rendering mechanisms