fb: TRDS 3.0 and new theme engine preparation (1/4)

All credit and thanks to Lars Greiss/@Slimroms

Change-Id: Ibe91a23929183681d9a14484d4c6f835d0322af0