978 plural was were

Introduce a generic function to select either singular or plural form of a word.

Selection is based on a count number. It simply returns the singular form when number == 1, plural in any other case.

Use this for photo upload success message. Fixes #978