Keep coding the chunk cache, is almost finished!, supporting both
protocol.

Signed-off-by: Wolftein <agustin.l.alvarez@hotmail.com>