various improvments

* better support for https
* error handling
* nicer displaying of links