I just pulled your latest commit and make the application, it seems that I'm having this issue on my Ubuntu 16.04 machine to burn into my NodeMCU
esptool.py v1.2-dev
Connecting...
Running Cesanta flasher stub...
A fatal error occurred: Invalid head of packet ('\xe0')
I checked the user.cfg and found the issue (for me at least) to be FWBURNFLAGS = -b 1000000 after changing this to FWBURNFLAGS = -b 115200 or ``FWBURNFLAGS = -b 1500000` I can burn into my NodeMCU nicely.
Does FWBURNFLAGS = -b 1000000 work for you?
and saw the esp82xx really great job there!