[Stable5] backport  Google Drive SDK 

Basically a number of cherry-picks from https://github.com/owncloud/core/pull/3392. 
Submitted it as a PR because of large amount of changes.
I tested it a while and it works much better than current stable5 implementation.

@karlitschek @MTGap