Reinstate the syncmedia command

This commit reinstates the syncmedia command.  It is useful for people
who are deploying with other WSGI servers such as Gunicorn.
Merge pull request #1791 from chris-allan/reinstate-syncmedia-4

dev_4_4: Reinstate syncmedia command