handle errors on finding master, and add authentication

- fix a leak in `redis_close()`
- fix a handling read-only redis server
- update for latest _xerror_ module
Merge remote-tracking branch 'origin/master'

Conflicts:
	sredis.c