Added hostname attribute for setting agent hostname (#75)