Upgrade templates to Django 1.5

Upgrade url-tags and use STATIC_URL instead of MEDIA_URL
Upgrade settings to Django 1.5
Replace generic functional views for redirect
Fix pagination for empty pages
Add static url patterns in debug mode
Upgrade dependencies to Django 1.5