Merge pull request #704 from quickcue/modules

 Fix gh-407: added recommended UMD syntax to raphael for AMD support.
AMD adjustment: define Raphael as an anonymous module (rather than named). Also adjust the build for smaller size. Closes gh-524.