Added recommended UMD syntax to raphael for AMD support. Fixes gh-407.

Related: https://github.com/umdjs/umd
We can assume require's presence if define is present. Minor style adjustments.
Merge pull request #704 from quickcue/modules

 Fix gh-407: added recommended UMD syntax to raphael for AMD support.