Added connect.py plugin, refactored init and start events, added send_line