changes based on PR comments

fix issue where 409 not generated when rev supplied for new doc
added test cases to verify 409 returned when expected
add support for If-Match header in addition to rev request param