Move host masking code to new config class
Merge pull request #81 from glguy/maskconfig

move host mask stuff over to new config class