added error code handling; TODO bug fix
Merge branch 'error-code' of https://github.com/darkjh/powerline-shell-scala into error-code
correctly terminates msgs with '\0' in the client side
deleted old Segment inner class code; now basic CWD and error code features are completed