Add support for composer.json validation. Closes #3

This also does line-ending changes on the .travis.yml - to remove those pesky `^M` entries from diffs. Let me know if I need to rebase this.