simple node app that reports whether a redis instance is master or slave