Merged CortexGL branch

- also has a ton of other engine fixes that were out of date.
- does not fully update to 3.5.1.
- sorry for huge commit

- script side needs done still