add support for commonjs and amd

I'm trying to use this in my application which uses browserify, although this already have a package.json with a main property, the distributable only creates the window.Firepad property.

I'd like it to use `module.exports = firepad` commonjs form if available.

So, I changed the banner in the grunt file to generate this common header used to support the three forms.