Changed default db to Redis, added config class, fixed several problems