Texture sorting the pvs culled faces
Fixed bug preventing some geometry from drawing, other cleanup

Switched all applicable loops to range based.
Made all applicable function arguments into const.
Made entities parser take a pointer to the string.
Loopified the entity origin vector getter