Add check for state directory to validator.
Merge pull request #404 from rjnagal/validate

Add check for state directory to validator.
Refactor common methods out of sysfs package and add tests.
Merge pull request #403 from rjnagal/docker

Refactor common methods out of sysfs package and add tests.