Adding authentication support. Adding master slave support from others

This version has authentication support built in along with master slave support.