MBS-6968: Update CreateFunctions/CreateTriggers to fix missing delete/remove_unused_url and removed_unused_links calls
MBS-6968: update unused-url-fixes.sql to also delete unused things when it's run.
MBS-5973: Display release group CAA statistics
MBS-7084: Update to_merge on /:entity/merge pages

The work on MBS-7057 meant that entities were only loaded from the
session once to avoid some odd state changed bugs. This meant that the
extra information loaded on the /:entity/merge confirmation page
was loaded, but never used in the actual rendered page as that
referenced a different variable.

This commit keeps most of the code the same, but on the merge confirmation
page we make sure to reset $c->stash->{to_merge} with the new set
of entities.
mbs-7086: fixing JSON for video recordings
Add edit_kind method (add/edit/remove/merge/other) to all edit classes

Necessary for MBS-1989
MBS-1989: Color-code edit header based on kind

Cancelled edits are light gray, closed edits are more grayish than their
open counterparts.

Thanks to nikki for the original "Colourful rainbow edit headers" user
script, upon which this is based on.
MBS-7081: Beta: disambiguation comments on inline search are barely readable
MBS-7085: update to remove primary_code warning now that area codes are always loaded
MBS-6915: Uploading multiple images in IE10 does not work as expected

IE10 caches the json blobs from previous requests. This makes it not
do that.
MBS-7073: Set the 'show_video' flag on artist overview

If the artist only has standalone recordings, then we should
conditionally show the 'video' column depending on whether or not any of
the standalone recordings are in fact standalone videos.
MBS-7044: Sort aliases by locale, then dates, then names
"last week" is a bit ambiguous, use "last 7 days"
Set no-cache headers on /cover-art-upload response
Write custom artwork viewer based on $.ui.dialog to replace thickbox
Releases do not always have labels associated; ensure that filtering by subscription on release reports does not exclude those without.
MBS-7046: Don't use total_entries of a possibly outdated $pager

$release_groups always holds the data of the latest _load_paged call.
It's easier to use the length of that array than always getting (or
keeping) hold of a reference to the stashs pager.
Indentation fixes for root/artist/index.tt
artist/index.tt: Remove some superfluous characters
MBS-7089: Clean up Discogs artist/label ID URLs

Discogs has introduced new URLs for artists and labels that contain an
ID number, e.g. "http://www.discogs.com/artist/3554355-Levantis-2"
instead of "http://www.discogs.com/artist/Levantis+(2)". Recognize the
new form and normalize it to "http://www.discogs.com/artist/3554355".

Old-style URLs are still used for some internal links on Discogs, so
they will need to continue to be allowed. There are some ambiguous
cases: "http://www.discogs.com/artist/1-800-Dis-N-Dat" could mean
the artist named "1-800-Dis-N-Dat" (old style) or an artist with ID 1
and name "800 Dis-N-Dat" or similar; I opted to prefer the second
interpretation because Discogs does that, too, redirecting the example
URL to the artist #1 "The Persuader" and making old-style URLs useless
in these cases.