Added publishing options in both redis and mongodb.

Updated test harness.
RedisAscoltatore now sends JSONs.