Added module config API to config service
Code cleaning up