Fixed 'preview' button.

1. CSRF protection made by examples in django docs (previous version was broken)
2. Use 'markdown' template tag from django_markdown (django.contrib.markup was deleted from django 1.6)
3. Use new django.shortcuts.render signature in views.py.