Renamed jobs in spider

* The name jobs was confusing because we are talking about event queues.
  Renamed it to events.
* Also removed junk comments.
Added basic server socket

* Added a main thread event handler for the admin socket in polyorc.
* Added ipv4 and ipv6 support
Refactored out socket creation

* We now have common functionality for creating sockets.