Imported NopHead's stuff from Mendel90 project

This is a evil merge of nopeheads openscad library stuff

https://github.com/nophead/Mendel90


Signed-off-by: Christian Ege <k4230r6@gmail.com>