Added codesniffer to travisci

When code is pushed it is now failed if it fails codesniffer. Also
pushed a number of coding standards fixes so that this commit will
build correctly.
Added a lint to travis. Just in case.
Fixed ant path issue
Merge pull request #304 from jonathangreen/travis

Added codesniffer to travisci