Add support for composer validation. Closes #3