Refactor code, finish parser, util and their test code
grub2: finish interfaces in grub2.go
grub2: update test code for grub2