ConfigDrive metadata service refactoring

Minor refactoring to properly support multiple OSs.