Beginning to implement new UI.

Stripping out lots of stuff we don't need any more and bringing in the
new UI shell, ready to be brought to life.
Fleshing out models for the library manager.
Adding a 'Dependency' view model, and some views.
First steps on the lib manager presenter.

Untested (as the rest of the UI isn't around yet), but should be able to
produce a simple library list (one level) from the JSON format.
I've made a real mess, trying to fix it.
Removing legacy images.
Syncing with local design.

Note that we're working in new.hbs so as to avoid conflicts as index.hbs
is changed elsewhere. Not quite ready to replace it yet :).
Updating configuration for new requirements.

Changes the 'home page' from index.hbs to new.hbs in web.js as well.
Cleaning up legacy stuff.
Fixing lots of little first-run bugs.
Implements a simple hash table with tests.

On the road to achieving this it's been necessary to setup mocha for
browser test runs so that we can test things which require jQ or
similar. To get this going I've:

* Added mocha as a submodule, fixed at the current release version
  (1.8.1);
* Added 'chai' (stupid name) as 'should' is node only;
* Cobbled together a runner in 'tests.html'.
Implementing a library manager JSON reader.

The purpose of this thing is to take some LM JSON (which we'll use to
persist the libraries state) and produce the appropriate model
hierarchy, ready for the UI to use.

Had to dump a load of crap in the browser runner page to make the tests
run, this will be dealt with eventually.

There have been some changes to the LM models as well, though these are
probably still quite wrong. More to follow here.
Little wording change in the JsonReader tests.
Adding in a useful comment.
Starting to make the library manager UI work.
I have literally no idea what this stuff is.

Let this be a lesson - commit at the end of every session.
Merge branch 'master' into new-ui

Conflicts:
	lib/web.js
Getting the UI back.

Tee's made various changes since I last looked at the project, and
they've broken the shit out of me. This gets me back on track (ish), and
the new UI rendering.

Oh and setting the production flag to false in the repo version. Ofc
this shouldn't be in here at all, and soon it'll be removed, but for now
yeah.