More refactor

* Made a `config` package which handles getting configuration parameters from either command-line or configuration file

* Made a `log` package which houses our custom log thingy so all packages can use it

* Added `Debug` and `Debugf`, with a `--debug` flag in the config package to enable showing those

* Made showing file/line numbers in logs only happen when debug is on, apparently it's kind of costly to do that

* Made everything use new logger and updated log statements everywhere to give more information in debug mode