License modified, various hml enums moved to hml.js.