Refactored the configuration layer, and expose a 'configure' command

you should also unescape the unicode chars here