Fixes and optimalisations
Merge branch 'master' of https://github.com/jancajthaml/sgloi13

Conflicts:
	source/cpp/core/Context.h
	source/cpp/core/ContextChunk.h
	source/cpp/sgl.cpp
	source/cpp/shader/Phong.h
	source/cpp/testapp/testapp.cpp