Preliminary refactoring to allow some test coverage before changing behaviour.
Merge pull request #171 from jmxtrans/convert-boolean-to-numeric

Preliminary refactoring to allow some test coverage before changing behaviour