patching for reconnection to couchdb if failed the first time

patching for reconnection to dashboard if failed the first time

patching for reconnection to couchdb if failed the first time

patching for reconnection to dashboard if failed the first time

new patch for seangchan comments

more comments from Seangchan
Merge pull request #4893 from alexanderrichards/changestate_couchdb_connection_fix

Changestate couchdb connection fix