Add AMD support

I've added AMD support in the jQuery version, i'm not familiar with PrototypeJS and haven't enabled it there.

The build had to be modified to make this elegantly.

In the AMD version `$(".chosen").chosen(options);` whould be 
```javascript
define([ "jQuery", "chosen" ], function ($, chosen) {
  chosen($(".chosen"), options);
});
```