Adding AMD support.

* Maintains global export to window.ab for
existing installations
* Uses the model defined at
https://github.com/umdjs/umd