adding support for treatHostsAsOnline()
Merge pull request #4 from clarkstuth/master
update travis-ci config