Add support for direct opening in browser, add settings