default search sorttypes

Somehow "manual" sort order for albums just did not make sense for a
search. And 'filename" for images did not seem to be intuitive. So now
the default is by title
Fix #583

Note that this fix is not verified as none of the developers have the
means to test it.
unique sets for albums and images

Insures that albums and images are not duplicated in the database.

Also logs bad album folder names
Merge remote-tracking branch 'origin/master' into 1.4.6