Do not throw error when config.json is missing

* Refactor to move some code from Main.hs to Hsbin.hs.
* Remove program name from error message since it is automatically
  added.
Add example config.json