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. 

I felt that this should be implemented because if someone is say running a server and they have a desktop environment installed on the machine as well this function could then be put to use. If there is no desktop environment (or supported one) it does the original behavior.