Separated materials from draw. Added JSON to read "material files".
removed lua because no one likes it anyway.