added functionality to check if a remote site setting has been created to allow access to the Metadata API

* Added functionality to check if a remote site setting has been created to allow access to the Metadata API