encoding: Moved toBase64 from common.cpp to encoding/base64.cpp. Added fromBase64.