Remove Platform.Context elements from config.xml files
Clean unused variables and little code style corrections

Signed-off-by: Álvaro Arranz <aarranz@conwet.com>
Refactor Subdata Trees methods

Signed-off-by: Álvaro Arranz <aarranz@conwet.com>
Refactor generateTree method

Signed-off-by: Álvaro Arranz <aarranz@conwet.com>