Re-add boot sector parsing, add unit test

Signed-off-by: David Scott <dave.scott@eu.citrix.com>