As each layer is processed, it increases in size by a factor of two
or three so by the end the layer list gets quite big. So this removes
the list entry after it's been processed.
Only supports a single stl model but supporting other file formats and
merge would be quite simple. Speed might mean requests timeout if
slicing takes too long. Just a proof-of-concept really but I might
use it to slice on my server from my laptop.
The points shouldn't be on hole borders so we can make the check
much quicker. Gives over 50% speed up slicing reprap shot glass
(thing:11944) with default settings and 0.3 layer height.
Gives 30% speed up on simcop2387's coaster on my laptop and it cuts the
maximum resident set size too. I know this is going to be replaced but
thought this might be useful in the meantime.