Added a redis backend and started on mqtt rewrite routines.