Added ability to respond to synch queries for Redis

@anpete Both materialized and non-materialized queries now working. 

TODO: add same ability for asynch queries
I find it clearer to put a line break after any pre-conditions.