Refactored file id retrieval methods.

All methods that retrieve a file id from Drive now call getDriveFileId.

Also added basic error codes.
Reorganized functions.