Cleanup service API.
Big refactoring for service spec and service runtime. Also change ServiceWorker uses configurer to configure.