Create AMD/CommonJS modules

For Flotr2 to work for example with requireJS, wrap all the files in AMD/CommonJS wrappers.
Let's get the discussion started. :-)