fastboot flash = FAILED (remote: invalid bootloader image)
It looks like you've got the wrong factory image. You're trying to flash the bootloader for flounder (which I believe is for the Nexus 9). You need to download a Nexus 5 factory image which should contain a bootloader called bootloader-hammerhead-hhz12d.img (or similar)