Fix handling of parameters in parser
Refactor sqx command processing to better support unittests
Improve readlines error handling
Merge branch 'hotfix/0.1.8.1'