Improve json error handling and fix issue with config get not unquoting
a returned key value before assignment.
Fix repl add command, update alias expand logic and only cd on
successful authentication if no server was currently selected.