Add support for composer.json validation. Closes #3