Tweaked Predefs to use a cache implementation, errors as json. PredefClouds is cleaned up.