Apiv1 fixes

Workarounds to support APIv1 properly.

Add OPENPHOTO_TEST_SERVER_API env var, to allow testing to be restricted to a specific maximum API version. This allows new API testcases to be skipped for old servers.

Explicitly remove tags from photos during tag testing. The tag create/delete API endpoints seem to be for internal use only, so these tests are a little contrived.