Metadata editing

This addresses issues #175 and #390.

Long metadata no longer overlaps on the page.  Instead, long keys or values occupy more vertical space, word wrap when possible, and excessively long parts are hidden.  The edit field for value has been switched to a textarea so that the user can see more of the value.

Metadata values that are objects are JSON.stringified for display.  If the entered value can be JSON.parsed, it is converted back to a object.

Metadata is sorted by key.

I switched the default sorting of collections to use locale-based comparison.  As part of this, I changed users so that they are sorted by lastName, firstName rather than just lastName.  The locale-based comparison is based on the web client's locale (which, depending on browser, will either be their machine's locale or the browser's locale setting).  It is slower than the 'C' comparison that was being done, but should still be fast enough if we page data.  We should try this on a very large collection.
nib's overflow ellipsis also functionally adds `white-space nowrap`, which
isn't desirable in this case.

On Tue, Oct 21, 2014 at 5:32 PM, Zach Mullen <notifications@github.com>
wrote:

> In clients/web/src/stylesheets/layout/layout.styl:
>
> > @@ -45,6 +45,10 @@ $minHeight = 500px
> >    width 400px
> >    z-index 10
> >
> > +.modal-body p
> > +  overflow hidden
> > +  text-overflow ellipsis
>
> if you import nib, you can use overflow ellipsis as an alias for these
> two rules I believe
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/girder/girder/pull/417/files#r19180912>.
>