Added some docstrings, use password on connect if there is one, added back plugins and message dispatch with it.