Merge/lute dev sd

Merged ios-shared from SetDirection into lute ios-shared. Removed duplicated code in ios-shared on base64 string encoding.