Added hostname attribute for setting agent hostname (#75)

Fixes issue #75