Added soup caching support.

Added new settings maximum-cache-size to set the size all the cache may use.
Default is 2000kB.