Allow multiple hosts for a metastore connection

Add a basic round robin retry for multiple metastore clients.