Redis Cache: use master for writes (optional)

Added configuration options "master host" and "master port" to Redis Cache. If those settings are set, then writes to Redis will be redirected to the master while reads use the normal settings. This makes it possible to use a Redis cluster in Master-Slave configuration.