Bottom-up refactor

This simplifies the entire code base, condensing all of the logic into
`imolecule.js`. It also simplifies embedding molecules into existing
webpages.