Port cache setup code to SystemCaches

This -almost- gives SHM metadata cache support, except for lack
of parsing of CreateShmCache --- I don't have a good solution for
that yet.