Added capability detection for vertex arrays and uniform blocks

Not sure how to handle this to be honest. All I know is that 3.2 won't fly on my machine. ;)
Would it make sense to automatically detect the highest supported context version and use that?