fixed template urls for django 1.5 and fixed test settings load
added thumb for main gallery class table
added thumb url and thumb file upload optional