Initial version of artifact definition validator.

@destijl for code review.

CL is ready for review but please do not merge with upstream, just yet.
this copyright stuff is covered at the repo level, I don't think we need it cluttering code as well.  apache says you only need it once per distro: http://www.apache.org/dev/apply-license.html