refactored uniform / texture management
(todo - optimize state, and check attribute values)
Merge branch 'master' of https://github.com/amd/rest3d