Rough framework prototype, with a focus on a JavaScript-driven UI - still need to clean up the ugly REST bits, and possibly look at persistence