Switched to json for configs

Holy fuck NuGet, is all that necessary?
Rewrote a bunch of shit and resolved #1
Use a regular expression for more generic matching