Move all manifest validation logic to /addon/lib/validator.js and unit
test it.
Merge pull request #549 from ochameau/validator

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