Support registering as an AMD module

Register select2 as an AMD module for script loaders like [require.js](http://requirejs.org/)
Basically uses the best practice pattern as of https://github.com/umdjs/umd/blob/master/jqueryPlugin.js