Add explicit RequireJS support for pugins

I've been using Hammer a lot and decided to move my latest Hammer project to AMD. The plugins are a huge help in developing UI but life would be a lot easier if they supported RequireJS explicitly. I added the standard `factory` AMD closure to the files to replace the existing non-AMD closure.