Templetaize identity tests.

The change extracts identity tests from tst_enginioclient and move
them to a shared header. We will need this for oauth2 authentication.

Change-Id: I332917f20d017ca35458070f868f302728332f97
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>