Allow JSON serializer configuration setting.

I didn't see a built-in way to use JSON serialization in redis/beaker so I made this configurable and have it fall back to pickle.