Remove trailing whitespace
Provide debugging macro to simplify debugging
Fix indention
Avoid size measurement when externalization is active as it might be wrong
Extract the code to write to a dpth file to make it usable for other variables
Create macros ifedefequal and ifIsWidth and use them
Remove unused argument from macro includetikzUnexternalized
Add some comments and debugging information
Regenerate and resize plot if figure size gets changed by externalization
Add tikz-3dplot test to test the plot regeneration code