Removes the intermediate confirmation page, instead using JavaScript for confirmation.
Fixes an XSS issue, in that the previous method was not passing or checking the session (!)
The ConfirmDelete page now uses parts of the photopage. The
Confirmation dialog is its own template which is based on Alert.
The database now updates the album thumb to the most recent
addition to the album, when the album thumb asset is being deleted.
When there are no pictures left in the album 0 will be set.