Adds AMD support

This pull request adds support for AMD/CommonJS. It detects the presents of module.exports or define and uses them if they exist. If neither of those exist, Throbber is added to the window object just like before.

I created this change because I'm using throbber.js in a project that uses require.js, and needed to be able to use it properly with require instead of creating a new object in window.