data-format attribute and AMD support

Adds support for specifying date format in the `data-format` attribute on the DOM element. The format string in the constructor will always take precedent.

Also, added AMD support which allows use with Require w/o using the shim.