Merge pull request #25 from fetrarij/master

reajust contributor & add sorting in readme
Excludes handles discriminated schemas
fix non array middleware option
Merge pull request #26 from cherbst/master

fix non array middleware option
* updated contributors
* release 0.5.1
fix copy of array options

do not modify option object of caller
Merge branch 'master' of https://github.com/cherbst/express-restify-mongoose into cherbst

# By Christoph Herbst
# Via Christoph Herbst
* 'master' of https://github.com/cherbst/express-restify-mongoose:
  fix copy of array options
fix: test was broken
* release 0.5.2
add option 'findOneAndUpdate', Default to true

Allows to switch to first retrieve and then update mode.
This allows mongoose validators to be called on document updates.
* fix: test was broken
* updated contributors
* release 0.5.3
Adds strict option
merges upstream
Merge pull request #29 from jamplify/master

Handles excludes on discriminated Schemas and adds Strict option
* release 0.5.4
Fix null ObjectId in createObject() and modifyObject()

(Because typeof null === 'object' returns true)
It would try to access ._id of a null object which would throw a TypeError.
Added parenthesis to follow this project's code format
* updated contributors
* release 0.5.5