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

if some error occurs we are not propegating it (just silently send a created http code). is that intentional?