Server creation

@alexwelch I'm merging into master. This is the stuff we'll need to review if you ever leave the realm of SSL.