added URL storage and retrieval that uses Redis. refactored some code