Move all manifest validation logic to /addon/lib/validator.js and unit
test it.