fixed RavenDB-1007 tests (previous commits didn't fix everything)
Merge branch 'New3' of github.com:ayende/ravendb into New3
LongIds/Remote test is passing (added missing check to avoid hitting UrlSegmentMaxLength limits in Http.sys)
DateTimeOffsetIssues test is passing
minor
Minor refactoring
Refacotring how we are dealing with async index reset during startups
Merge branch 'New3' of github.com:ayende/ravendb into New3
Fix a NRE, exposed by CheckForCorrectDateCompareBetweenLocalAndUtc test
Make sure to send the correct attachment Content-Type header
PutAttachment should return 201 response code
Make sure to not send a request twice
Actually fix the test
When we PUT a new attachment, make sure to have the Location header in the response
We should not return JsonContent for empty messages, as they return a Content-Type=UTF8 for responses like 201
Correctly escape a document id to be used in a URL