Make PostAgent use WebRequestConcern, adding options for Basic Auth and User-Agent.

This could probably solve #322.
Done in 7285cba.