added getParams, setEntity to MainHttpClient class.

also fixed bug with setting entity correctly.
refactored ProcessMessage and MessageSyncHtptClient classes.

Using new helpers in MainHttpClient.

added set/getClientError even though it's not being used yet, should
probably hook into wherever `getServerError` is called.