Enhance connection fail-over with master/slave restriction and add load balancing of connections among multiple hosts. Based on work by chenhj@cn.fujitsu.com
Merge pull request #209 from NitorCreations/master

Enhance connection fail-over with master/slave restriction and load balancing

Thanks !