Make sure we parse and pass arguments as early as possible.

Change-Id: I384f036a24e3eb648bde0fa8e40ab8dcb0779e7b
Reviewed-by: Michal Klocek <michal.klocek@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Be more verbose on the resource tree.

Change-Id: I1e079f94767d95d997ebb6d758c40e605fd36c75
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>