core: add healthcheck registry
server: add await method to allow to await a server which has been started separately
server: add isStarted method

+ review some thread safety by making main server methods synchronized