Add union tracking operation

Also includes some cleanup of the testing framework. @tdumitrescu and @ttrefren please take a look!
I think there may have been a reason this exists. Ask Kyle. He did some work around making the minified lib url dynamic.