Fix trmk

terremark was broke for a couple reasons.

1. it was missing an annotation which is strictly parsed in 1.6
2. java kindly erases `Content-Length: 0` header on POST unless you `setDoOutput=true`

both changes should be safe to cherry-pick into 1.5.x branch.