unpackbootimg: Add support for second, second_offset and tags_offset.

Change-Id: Ia7ef7f00191dbf2c44736c4e4d980f72afa8c253
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0