Merge
Merge
WIP on the re-implementation of fact caching and various backends.
Implement fact cache flushing alongside a command-line argument to invoke it.
Use cPickle in redis fact caching backend.
Implement connection pooling for memcached cache plugin.
Standardize exception handling
Add copyright header, let me know if corrections are needed.
Fix some copyrights, fix a misc test.
Use JSON instead of pickles for compatibility.