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.