add header options for PostAgent

allow option 'headers' which will be added to http header of post request. (this is follow up of #218)