Also fixed a bug with M105 getting entered multiple times while printing.
Fixed a bug with leveling trying to push twice each time it was sent. No printing problem, just a waste of time.
Put in the ability to force immediate writes so that we can be sure to turn off the heaters and motors when exiting the program.
Fixed a bug in the injection of m105 during printing so that it does not go in more than once if present.