Rework marketplace app into something saner.

The app delivers a very large payload of js and css without making any attempt
to reduce load on its own servers. A great benefit could be realized by simply
minifying all source.

This commit add a simple builder and test runner and rearranges the js
directory structure a bit so it makes more sense. It also refactors some
inline JS into separate files.