Make stats.cabal pass a cabal check.
Added configuration file.
Make docker ignore the cabal sandbox.
Refactoring and support for config file.