Move media model and route into server.js