Re-factoring of the meta data service

This PR contains the following
1.Meta data service code re-factoring
2.Meta data service configuration changes

I don't see we check isDebugEnabled here, but we can that down the line for a another log entry. is that intentional?