Tweak formatting.
Improve opening thread urls in a web browser.

- Add exception handling.
- Use check_call() from module subprocess instead of
  the old getstatusoutput().