Test fixes, better JSON/BSON handling
Fixes for edit, create
Repo models, formatters