Simplified JS API.
Inlined model definition. Moved manipulators into model. Simplified redundant logic. Users.resolve now returns user object or null.