Updated cli config interface, added config handler
Updated template helper to use cli config.