Extract ORM from model

This provides a working example of a reusable ORM on Redis. It's somewhat deficient in that primary keys are left as an exercise to the user.