Full URL support

Made the script also accept a full Google Docs/Drive item URL as a parameter instead of only the key. The key is automatically extracted from the full URL. The older method of only giving the key as a parameter also works.