[thumbnail] Show image file's thumbnail

Conflicts:
	seahub/views/ajax.py
	seahub/views/repo.py
[preview] Show image file's preview

Conflicts:
	seahub/views/repo.py
[repo] image thumbnail & preview: bug fix & improvements