introduce loadExtension function

Task-number: QBS-302

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