a schema-enforcing model class for node.js, with optional key-value store persistence