WIP jsmodels; add Segment class; all unvalidated