Refactor try..except out of serialize().
Serialize both ObjectId and datetime values.

Serialize ObjectId and datetime values even in embedded lists and dictionaries.
Queries on nested ObjectId and datetime values.
Updated arguments list for base auth classes.