Solved CRLF bug. Client now ends any command with CRLF (conforming to RFC). Fixed Bas64 encoding bug (missing trailing \0