Changed the way to copy an object.
http://stackoverflow.com/questions/728360/most-elegant-way-to-clone-a-javascript-object
Fixed model populate
Updated tests
Added Document.prototype.update & replace. Updated tests.
Fixed query logical operators.