Support CommonJS and browserify

Added main to package.json so we can `require('vex')` also with this PR we can require() dialog with a package relative path like this:
```   
 var dialog = require('vex/js/vex.dialog.js')
```