apply authz to search
add pager for /media, some optimizations for pulling media search results