basic GCM implementation.
Not tested, not ready!
Merge remote-tracking branch 'origin/master'