Ports middleware to Django, and adds repo sync view
Merge pull request #1430 from bmbouter/port-middleware-to-django

Ports middleware to Django, and adds repo sync view