PSR and other minor fixes:
- Fixes all known PSR violations
- Refactors HttpTransport::send for reduced complexity
- Small changes to the HttpTransport tests for faster test execution on HHVM