Extended in several ways

Hi,

i added some features, maybe you want to merge them:
join String for nested option is a setting
hostname is now the config hostname and not os.hostname() by default
switched unit testing to mocha (+ sinon and sandboxed-module)
added many tests
internal used functions are no longer in the prototype of the instance

Missing mocha dev dependency here