unittests v1 and config changes

added host and port to config
added first set of initial tests
Merge pull request #21 from sarevok/master

unittests v1 and config changes