rgba4 texture support plus unrelated bug fixes
Merge commit '80cc9de1dfb8f527514bdae1e2f2a5418e843763' into develop

Conflicts:
	ide/osx/BaconBox.xcodeproj/project.pbxproj