Fixed message callbacks. Implemented authenticate using native API, CryptoJS as fallback.