fix unit tests for Erlang/OTP R16
fix unit tests for Erlang/OTP R16

Fix two problems with the unit tests for R16:

1. Code failed to compile due to warnings caused by calls to the deprecated
crypto:md5/1 with compiler option warnings_as_errors in effect. Use the
existing {d,old_hash} erlc define to call crypto:hash/2 instead on Erlang
versions newer than R15B01.

2. Tests involving POSTs and status code 303 redirects failed due to a
missing {autodirect,false} option on httpc:request/4 calls. In older
versions of Erlang httpc didn't redirect for such calls, but that changed
in commit 4b9b5cc6 in the Erlang/OTP github repository, which fixed
OTP-10765 as part of the R16B release. Also verify that the presence of the
{autoredirect,false} option doesn't break the tests for older R15 or R14
releases.

agx/webmachine,srenatus/webmachine,agx/webmachine,joedevivo/webmachine,spilgames/webmachine,sdebnath/webmachine,nparry/webmachine,srenatus/webmachine,anish-mp/webmachine,spilgames/webmachine,vinoski/webmachine,nparry/webmachine,sdebnath/webmachine,liuhongchao/webmachine,riak-synrc/webmachine,vinoski/webmachine,campanja/webmachine,lemenkov/webmachine,tsloughter/webmachine,basho/webmachine,samuelrivas/webmachine,pooya/webmachine,kellymclaughlin/webmachine,samuelrivas/webmachine,joedevivo/webmachine,kellymclaughlin/webmachine,riak-synrc/webmachine,riak-synrc/webmachine,liuhongchao/webmachine,pooya/webmachine,joedevivo/webmachine,lemenkov/webmachine,chef/webmachine,Webmachine/webmachine,anish-mp/webmachine,basho/webmachine,chef/webmachine,mondemand/webmachine,Webmachine/webmachine,campanja/webmachine,mondemand/webmachine,tsloughter/webmachine