server module overhaul

I pulled all of those closure literals out and documented a little bit. An EventEmitter becomes the this of its callbacks, so I figured we could take advantage of that and avoid closing over socket so much.