Various network improvements

This fix provides webcache options inc. option to use stale data for
performance, and improves prioritisation of various types of webservice
call. It is a bit hefty, and undoubtedly scope for code improvement.

This is a resubmitted PR broken into several commits for code review readability.