Extended to expose the linenoiseColumns() feature returning the console width.
Extended cmdloop with an -exit callback to allow programmatic exit of the repl, not just via ctrl-c.