Merge pull request #1872 from mtbc/trac-11610-fix-test_repository

fix integration.test_repository
Pass -w to pg_ctl so that it waits for server to start
Fixing {% url 'webstart_index' %} for Django 1.6
Make memoizerWait configurable; 100ms default
killall postgres
Use getThumbnail() to speed up import.
Handle lost connection when network is back up.
Merge pull request #1871 from jburel/blackthumbnails

Black thumbnails
merge develop -D org -I include -E exclude: PR 1385 (Update the OMERO VirtualBox image)
merge develop -D org -I include -E exclude: PR 1712 (Create release source artifact containing all submodules)
merge develop -D org -I include -E exclude: PR 1779 (Copy rendering 11552)
merge develop -D org -I include -E exclude: PR 1807 (Cleanup TableI.close() #11697)
merge develop -D org -I include -E exclude: PR 1811 (11607 scripts)
merge develop -D org -I include -E exclude: PR 1818 (Error handling of tile image loading in PanoJS See #11709)
merge develop -D org -I include -E exclude: PR 1838 (Connection)
merge develop -D org -I include -E exclude: PR 1840 (Webstart popup windows 11656 develop)
merge develop -D org -I include -E exclude: PR 1849 (Extract Django when it's missing or is the wrong version)
merge develop -D org -I include -E exclude: PR 1863 (Use python's json rather than Django's)
merge develop -D org -I include -E exclude: PR 1865 (assist #11675: prevent some leaking direct buffers)
merge develop -D org -I include -E exclude: PR 1867 (ImportLibrary: read from each used file's mapped ID)