Add defines to create server/client configs, add service support