Add more flexibility

* make window resizing possible
* lower OpenGL version to 2.0
* variables cleanup

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>