Various low level changes

Input handler set up
.cfg changes
Texture class prepared
Model class prepared
Tidied up a bunch of memory

BROKEN: window ptr loses scope for reasons unknown