Remove plugin.length and replace plugin.servers with connections. Closes #2052. Closes #2053