base64 encode/decode if server modifies request string. Bugfixes on callbacks.