development: TRDS 3.0 and new theme engine preparation (2/4)

All thanks and credits to Lars Greiss/@Slimroms

Change-Id: I33c814d2dac05154e840fb01a7009ad15451234e