Moved redis code to it's own object.  Updated make to include it only
when redis is used
Fixed a memory leak in read config dir
added thread exit for web thread
Switched arguments to calloc, they were backwards accoring to manpage