Reorganize server start/stop functions

Expose the start/stop/init functions only. Separate initialization
from server start.