AJAX, cli history, content pack, item demo.

Revamped most of if interms of UI and navigation, added an API, which
uses partial JSON.