Added server mode to serviceframework, which can be used to get service metrics and test the services