New configures application resources and routes.The
isMaster parameter determines if we run in discovery mode
discoService determines the discovery backend to use
NewServer creates and configures an APIServer serving all application routes.
isMaster determines the API set to provide, and if enabled initializes the Moloon Controller