use dependency solver to order the installed operations

 - in case of single updates the order of the installed operations
   were wrong, now we reorder that till we are using that code for
   the install order aswell
 - added initial autotest for the dependency resolve code

Task-number: QTIFW-318

Change-Id: If411a684cb02ef9e7d0316084075e86702bf839d
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>