get a basic set of tests running
queryhosts should be really empty

Make the array handling more correct and easier to parse.
fix failing travis lint tests
Merge pull request #4 from duritong/tests_and_external_bind

Tests and fix queryaddresses