Fixed a bug where the lines are drawn offset when the page is scrolled

Also added very basic styles.
The sockets now broadcast instead of blindly emitting. This means that a
socket will not send a message to iteself.