Do not let the autotests pollute the profiles namespace.

Introduce and use the new class TemporaryProfile whenever profiles need
to be created as part of a test.

Change-Id: I3d91f112342b1cb2861cbe9d2c96deac7f762cd4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>