Rewrote config commands for new config system.

Resolves #96.