updated datastore functional test to expect proper 4xx responses
updated dist-datastore servlet to return proper 4xx responses on bad requests
moved duplicated code to own method
Merge pull request #869 from rackerlabs/D-16714-dd-put-patch-fix

D 16714 dd put patch fix