Define library with UMD and test build process

Extend build process to create an ignored "test" file that can be loaded
in various environments.