put should update linked docs correctly
Local cache should be updated for new docs as well as old
Don't emit resync until localCache has been updated
Resolved merge conflict

Conflicts:
	lib/storage/queue.ts