Add legacy media_entries and media_set routes

Squashed commit of the following:

commit 7704e0d7cd6500ce95fcb6940e9f2a34e1a83dff
Author: Jonasz Grochowski <tensaioni@gmail.com>
Date:   Fri Sep 12 11:34:57 2014 +0200