Headless: Added support for opening URIs

This may not be supported on all environments. I have added the necessary checks and balances to make sure it doesn't crash on not supported environments.