Fixed some performance issues and implemented download of single photo.
Refactoring of single/multi photo download in content script.
Further refactorings of single/multi photo download.
Fixed test failures.