Reintroduce pkg-config with optional Makefile.config flag.
Merge pull request #1283 from jeffdonahue/optional-pkg-config

Reintroduce pkg-config with optional Makefile.config flag.
Merge pull request #1238 from kmatzen/db

leveldb/lmdb refactoring
merge viz
Shrink images if they are really big.
Downsamples log records before sending them to the browser.
Fixed viz server so that layer names with hyphens are handled properly.
Added min and max to viz
Expose min and max in server.
Reduce number of datapoints.