Creating listener socket.
Added a bunch of stuff! REALPATHES hates us all. Chroot does not want to play... Cleaned up the wsroot function.