Add per_page and count method to mediacore_media
Fix php code sniffer warnings
Add a PER_PAGE const to the repository