Remove infinite stack trace
Move config code to its own file

Also begin using TOML because of its simplicity