Rename |file_cache| to |cache|.

Also, move |FileCache| into namespace |cache|.
Add support for IPv6.

Not tested in any way.