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.
Merge pull request #1295 from Unkn0wn0ne/patch-16

Headless: Added support for opening URIs