Factor out common structure hashing code to util
Factor out structure dumping into util
Factor out structure loading,clearing into util