Document building UIs, including the available JS libraries

This does a little rearranging to try to concentrate the HTML/JS stuff in one file, with the API stuff in the other.