Add support for singletons and UMD.
Update the README.