Use JSON-based config

Migrated to use JSON-based config. [It sounds like](https://github.com/minotar/imgd/pull/96#issuecomment-65916831) we'll need some more config options in the future, and adding more environment variables it's really ideal.