I really should sleep

Added json configuration file support with near feature-complete sanity
checking. Added command mapping. Minor formatting changes. Removed
irrelevant dependencies,