Add a main-module entrypoint

Add a main-module entrypoint preperatory to server.py going away.