Add API tests

This PR adds tests that prove that the API is available when loaded

* in a regular script tag
* by RequireJS
* by RequireJS in the jQuery build version (with jQuery present)
Yes, that turned out to be more difficult that I anticipated. 

Am getting closer now, although I don't quite understand why it doesn't work for an AMD included jQuery yet