move all buffer mgmt into intel_hex

- same buffer mgmt should work for atmel & stm programs