Fix code style and update documentation.
Make sure upload test only runs on PHP 5.3.4 or newer.

SSL extensions are not fully working there. See https://github.com/travis-ci/travis-ci/issues/1385.