introduce ScriptEngine::setDeprecatedProperty

A convenience method to set up deprecated properties.

Change-Id: I1e967e9ab42b00bdb157523c09efe996e7d53a15
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>