Fix tag counts update upon photo deletion

The API call in method ApiPhotoController::delete is issued before the
photo is deleted otherwise it returns an empty result.

Conflicts:
	src/libraries/controllers/ApiPhotoController.php
Fixing broken unit test for Tutorial. #1193
Add simple mechanism to select plural word form

The utility gets passed a number and both singular and plural form
of a word. It returns the singular form for number == 1 and the plural
form for all other cases (including number == 0).
Use correct plural verb on upload success page

"1 photo _was_ uploaded"
vs
"2 photos _were_ uploaded"

Conflicts:
	src/templates/uploadConfirm.php