Adjust to be compatible with more recent docker API versions.

The current docker API doesn't give the version information in /info, it's in /version. If the version information isn't present in /info then we know we're later than docker 0.3.3 anyway.

command and ports arguments should be arrays.
Merge pull request #1 from initforthe/api_update

Adjust to be compatible with more recent docker API versions.