Implement config sub-commands as per the documentation, closes #9.