Make caches readonly
Code cleanup: remove unused comments
Code cleanup: remove unused imports
Support socket listing in text summaries
Open summary file in Create mode

This fixes a bug where writing to an existing summary file would simply
write over top of that file, leaving trailing data from the old summary if
it was longer than the new summary.