Test Reference.js with jasmine

Just starting testing it. Tested some construction behaviour, but had
to comment out those nested AJAX calls. Not a huge issue since my final
goal is to delete them and made them happen on demand. I mean, construction
should not trigger them.
Test Reference.parent
Reference.get() with lazy load
Reference.get('parent')
Reference.get('children')
Reference.create()
Reference.create() caches by uri
Some fixes in WebClient use of Reference
Reference.create(): Link parent with child
Reference.get(children) mixes new with existing
Reference.get('root')
Some fixes in TreeView

Actually I think we're going to remove this widget and replace it
with the Outline one, which is being transformed to a powered tree
view.
Reference.get('objects')

With this .get('objects').each(function(object) { ... }) syntax we
allow asynchronous work on client side, because retrieved objects
can really be a lot.

For now I didn't change the JADE templates and what I do is simply
re-render the views when a new object is added to the reference data.

TreeView and OutlineView are now a little redundant and should
probably be merged in a single component.
Accordion for OutlineView

I'm just using the default JQuery UI theme which together along
with our styles tastes like a slap in the face. Please call a
designer.

But it's working, by the way :-)