Update the lint-refernce to get test-reference fixes.

Thus restoring a passing test suite here also.

Change-Id: Iab0e1bf2cf1b9df216b71cbd584bedceff402738
Ticket #1738: Disable View Changes button unless file saved

It doesn't make sense to use this until the file is first saved.
Disable it in the same way as the Check Syntax button
Remove debug prints.

Change-Id: I829b2cae7febde7dbc1e0b8a44f36a783d86191a
Move test logic into a function for re-use.

Change-Id: I29ad81ee0f15a969a3d7d89b644b8044af4fd1da
Fix #2072: Escape project names in clone urls.

This ensures that the url is valid to use when cloning the project,
as well as ensuring that project names can't be engineered to break
the IDE.

Change-Id: Ic33e537bee2f66bb2750ee4daab39ee1faafdf22
Fix #2073: Bump the ACE revision to fix IE9 clipboard issues.

This also picks up a number of other fixes & improvements in ACE,
but the headline is the important one. Now using build v1.1.1.

Change-Id: I84f2610a60505c813ac894b4f926c90bb3cc2dab
Cache config in a local.

There doesn't seem to be a good reasons not to have done this.

Change-Id: I5ec79d09492f13790caee09c89159ed3b8cae8da
Add a space between the project label and the select.

This is visually nicer than not having a space.

Change-Id: I8c0ce0450c2bb7207d7bb04bb9699e5abe9f2fa2
Add jQuery based Chosen for project selection.

This should make project selection nicer, as it offers a search box
rather than just a plain selector. At the moment, this is just based
on the existing list of projects, so users still need to know what
they're looking for.

Change-Id: Ic26dcb17742f70fa3ea20f26a7dc98a20e31f761
Fix settings defaults.

Not entirely sure why these were wrong. The value specified here needs
to be the desired default _value_, not the default _label_ (as it
was previously).

Change-Id: Ifa2f8f911a6e8b5c97e82463850190e869302007
Make settings requests account for defaults.

This works better than requiring each usage to have to deal with
this themselves (which they previously didn't).

Change-Id: Iabbcd6b770df68119fe884b2ab3fef46984af908
Make the Jasmine runner error on syntax errors too.

Previously, these were treated as success.

Change-Id: I061d192f08484831b98f229830596d8f00ee4608
Remove duplicate lookup of list.

Also move the lookup higher up, which will be useful for
sorting it differently.

Change-Id: Idbc1a64b23f014222f5d913e6a1096d9ddc39915
Fix browser project selection list.

My change to the ProjSelect object (part of 2584c5f887788e274) to
accept a jQuery node wasn't mirrored in the Browser's usage. This
commit removes the additional parameter, and instead constructs the
jQuery node from the one we're passed anyway.

Change-Id: I77f96a7fa07c9b5496cbc4880203d2bece3995e8
Fix #1007: Add optional by-usage sorting of the projects list.

This further improves the use of Chosen as the selector, by making
it possible to select to have the project list sorted by usage,
rather than alphabetically (though this remains the default).

Note that using the raw usage-order-list like this is a bit rough
around the edges, as it means that a single use of a project takes
a while to filter out, but it's probably good enough for now.

Change-Id: I415455f9a33f7f1feb86377b0b5d110efa3cd39d
Add a doc comment on the class, fix comment alignment.

Change-Id: I3a4e0d09257915b69137e491729d1840be1d0c0f
Ensure the stored project usage doesn't grow too big.

Have the UsageSorter limit the number of entries that it keeps,
since we know it's operating on one list per team, 20 items seems
a reasonable default for now.

Change-Id: I49f9ce9a4d5f0c4b1eae971711ef29553460fcf5
Fix typo

Change-Id: I56cd14c09ab429b90f522074f9b916fcda07f63b
Whitespace & style tidyup.

Change-Id: Iba1a34248d0d3ffe005f6f798cfbeeb1dbd948b0
Apply errors to the right file.

Previously, an error in a file would be shown against the file that
was checked, rather than the file the error was actually in.

Change-Id: Ie13b9cc3fc775f0d4da9d86c2e21e3d5f074d1ec