Add locking mechanism to singleton
Add socket initialisation method and handlers
Add method for retrieving serial
Add note about libev and wayland event loop