Reworking the server lifecycle management.

...in the Stuart Sierra style.
Moving net/rendering functions out of the core namespace.