Add check for sock.format() to support amp and non-amp axon.
Merge pull request #14 from bretcope/format-check

Add support for current and older versions of axon.