Catch error msg at httpwebrequest. Send version info to broker side.

Issue #194 
Issue #117