Quick fix for media view

Without this, the following error occurs:

    Message:

    Error rendering view: [platform/media::view]

    Undefined index: name

This is because the media array passed to the view is 2D, whereas it's
expecting 1D.

There's probably a more elegant way of fixing this.
Return the correct media
Fix default page template

Uses '$template' passed into view if old-input hasn't been set
Merge pull request #123 from tlvince/bug-default-template

Fix default page template
Merge pull request #122 from tlvince/bug-media-array

Quick fix for media view