support for dumps bson objects
handle especific exception ImportError
Only response JSON when header "Accept: application/json" is set into request
Merge branch 'header-accept-json' into merge-features