Add initialization support

This adds a new message when the initialization is complete, and removes
the non-functional check for authentication at startup.

Since this check never worked, the overall behavior should be identical,
except that
* the script element is no longer required, and
* it is now possible for users to wait until the API is initialized