Fix minor issues in the `package.json`.

Namely:
- The "name" field (as agreed by @trek in #4)
- The "author" field
- The "license" field
- The "homepage" field
Add more robust checks for CommonJS, AMD, and browser environments.