Add a place search index.
Also add alias indexes and such.
mbs-6806: add autoselect for instagram and tumblr
Replace VACUUM FULL ANALYZE with the non-FULL version, to avoid locking and hopefully prevent some database weirdnesses.
MBS-7340: clear errors on removed links, so forms can submit
MBS-7341: Add a button to reset previous recordings in the release editor
MBS-7342: Release editor hangs on "Submitting edits..." after certain errors occur

The error returned won't always be JSON (for instance, when the server
is down entirely). So if it fails to parse an error, at least show the
statusText and status and not get stuck loading.
MBS-2754: Show medium number for recording uses

In the list of tracks that use a particular recording, display
"medium_number.track_number" instead of "track_number/total_tracks".
MBS-7343: always html_escape text passed to link_*
Add returnTo feature to "Relate to URL" actions
Add returnTo feature to Add/Edit Annotation action
Remove the two redundant "Please log in" messages on aliases and discIDs pages
MBS-7350: Load cover art types for Edit Cover Art

Cover art types were not loaded for the Edit Cover Art page. This
meant that the types for an image where not selected in the form by
default.
Remove merge conflict debris

Remove some commented-out lines of a merge conflict that were added in
commit aee9912b1f8200b6d55ebd974d77ac9ff4420019 a year ago.
MBS-7328: Improve the recording search in the release editor

The queries it sends no longer require the recording artists and
lengths to all be matched. Before, the logic was:

recording:foo AND arid:gids AND dur:[1 to 1000]

Now the logic is:

((recording:foo AND arid:gids)^2 OR recording:foo) AND
    dur:([1 TO 1000] OR \-)

The ^2 is supposed to boost the first subquery so that if the title AND
artist ids are matched, that's preferred over just the title. That
seems to function okay.

The escaped "-" in the dur field is to specifically include recordings
without any length. Thanks to Ian for figuring out how to do that for
me.
Merge remote-tracking branch 'chirlu/mbs-7350' into beta

* chirlu/mbs-7350: (70 commits)
  Remove merge conflict debris
  MBS-7350: Load cover art types for Edit Cover Art
  Fix WS::2 tests for work attributes
  MBS-7335, MBS-7336: Prevent deprecated URLs from being added
  MBS-7334: IPI codes not correctly displayed
  ISWC code not shown on ISWC page
  MBS-7333: ISRC code not shown on ISRC page
  Add Wikimedia Commons and CPDL to the score whitelist (MBS-7330)
  MBS-7329: Importing a multiple artist freedb release gives a seeding error for the "artist" field
  Fix conditions for detaching to 404.
  MBS-7325: correct variable name when cancelling an AE election nomination.
  MBS-7323: URLs that can't be decoded as utf8 are blank
  Revert "MBS-6822: Revert "MBS-6067: Always work with an inc object""
  Use EditExternalLinks in entity controllers directly
  MBS-7322: Process both external link and ISWC edits
  Remove trailing whitespace
  Replace tabs with spaces
  Remove space between function and opening parentheses
  Don't strip the slash after the domain name for Facebook URLs (MBS-7319)
  Fix whitespace in URLCleanup.js
  ...
Fix tests: html prefix is not correct for xpath since rdfa removal, link types don't pass validation without descriptions.
Merge branch 'beta'

* beta: (148 commits)
  Fix tests: html prefix is not correct for xpath since rdfa removal, link types don't pass validation without descriptions.
  Remove merge conflict debris
  MBS-7350: Load cover art types for Edit Cover Art
  Fix WS::2 tests for work attributes
  MBS-7335, MBS-7336: Prevent deprecated URLs from being added
  MBS-7334: IPI codes not correctly displayed
  ISWC code not shown on ISWC page
  MBS-7333: ISRC code not shown on ISRC page
  Add Wikimedia Commons and CPDL to the score whitelist (MBS-7330)
  MBS-7329: Importing a multiple artist freedb release gives a seeding error for the "artist" field
  Fix conditions for detaching to 404.
  MBS-7325: correct variable name when cancelling an AE election nomination.
  MBS-7323: URLs that can't be decoded as utf8 are blank
  Revert "MBS-6822: Revert "MBS-6067: Always work with an inc object""
  Use EditExternalLinks in entity controllers directly
  MBS-7322: Process both external link and ISWC edits
  Remove trailing whitespace
  Replace tabs with spaces
  Remove space between function and opening parentheses
  Don't strip the slash after the domain name for Facebook URLs (MBS-7319)
  ...
Merge remote-tracking branch 'reosarevok/mbs-6806' into beta

* reosarevok/mbs-6806:
  mbs-6806: add autoselect for instagram and tumblr
Merge remote-tracking branch 'jessew/mbs-1271' into beta

* jessew/mbs-1271:
  Remove the two redundant "Please log in" messages on aliases and discIDs pages