crawl queue management
some fixes
image browser sample stolen from http://stackoverflow.com/a/3167114/1933494