Initialized the server and must be called before any other method.
Any publish interfaces MUST be registered in this method.