Added modified basic code from Minetest Minimal, huge cleaning and changings and optimizations on the way. It's really buggy at this point.