VE-471: first pass refactoring (WIP)
VE-471: fix layout and rename pagesPanel to pages for consistency.
VE-471: fix pages panel and add query widget styles.
VE-471: tweak pages panel styles so that it takes up entire remaining space.
VE-471: fix searching; move some logic around.
VE-471: move more logic around; fix arrow key and enter selection of items.
VE-471: add doc comments where applicable and remove where not.
VE-471: more doc comments and minor cleanup.
VE-471: add doc comments to media results widget.
VE-471: 'media' -> 'requestMediaDone'
VE-471: clear query input on close.
Upload box styling
merge with 471, resolve conflict
changes from code review
Merge pull request #1824 from Wikia/VE-488

VE-488: Add upload box and style
VE-471: change the way items are passed to requestMediaDone per code review comments.
Merge pull request #1816 from Wikia/VE-471

VE-471: Fix panel layout