Fixing PouchDB AMD issues by separating amd deps and global deps. Global deps will be included before the AMD loader to ensure they are global as intended.