Support shared DB version of Commons definition

Supporting production is Hard Work (tm)

Change-Id: I57b1ea945711f6fe76697927641bf4e805be15cf
(cherry picked from commit ff527cd0f331541fbdd7705d373d268cef2e7c3e)
Fix the share/download patch

Turns out the "active" class is added in each pane's definition.

TODO: Fix that.

Change-Id: I6da961618b360d96a03948d4f6688cd4e1931b66
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/679
(cherry-picked from commit 069abe66af4c86448ce1ac9a910651a77262cdca)
Merge "Support shared DB version of Commons definition" into wmf/1.24wmf7