fix #604

This is not perfect, but will do until the back-end is re-vamped
fix #602
fix SQL error if id is the sort type
#611
proposal for #611

setting of center and zoom values before initialization of the map with
different values between different contexts (single image and album)
Revert "proposal for #611"

This reverts commit 48b2afced8bed54196712fabc8b5705474ba6c71.
remove unneeded declarations
different message for missing setup files on a clone install.
loosen some permissions

Use 0777 when files/folders are about to be removed or renamed.
more permissions
fix #613
carry coordinates internally in float format
fix #611
return page

return to previous page if last item on page is removed
RSS Fixes
fixes for expiry processing
#604

This moves the expiry date to the same line. Maybe a better solution
could be made. It certainly looks better for the expiry to be beneath
the publish date.
prevent some references to non-existing variables
handle theme special images
release id f293a451e4