Make service use the latest DocumentCache and PersistentDocumentCache from BSCore. Minor fixes.
Cache empty task assignment message so that we don't waste time and space on serializing it again and again.