Hiredis patch rework

@octo ask for some changes:
- timeout in millisecs for backwards compatibility.
- remove credis from configure.in:
  - I've changed write_redis to use hiredis too and removed all credis stuff.

This just compiles not yet tested.