Use undefined as initial value.
Moved mongoize and demongoize to instance methods.
Added support for _type in database. Allows single table inheritance.