Restructured event system.
Created a new event for connecting to servers.
Implemented a form of connection