UI: more updates to facility constraint based entities

Also includes many general cleanups / optimizations of the
js logic
Split manu entity classes into mixins, gen their attrs from constraints

Much needed cleanup of Ship and Station classes to refactor into
isolated mixins & to generate base data from constraints.json

Includes specs & specs for recent constraints & cosmos dsl
features