Introduce <deflate> tag; reformat code

Change-Id: Idd79ddee8fc389a3becf2b16247373fac0c6b1bc