Second pass at gl query object, from @ryanbartley initial work.
Added test samplye for query objects.
Missed renaming in implementation file.
Added query object to vc2013.
Updated test sample for windows.
use AV Foundation for capture

The AV Foundation capture implementation currently used for iOS works unmodified on OS X and works from OS X 10.7+.
whitespace fix
SourceFileCoreAudio’s clone method calls to setupSampleRateConversion(), needed to recalculate actual number of output frames. Fixes #499.
minor cleanup: remove unneeded method as it only calls base setupSamplerateConversion().
minor test addition
Minor fix in FBO
- missing case causing default depth format to have undefined results
- also fixed stencilReflection sample, removed outdated ES macro
Merge remote-tracking branch 'origin/sf_clone_numframes_fix' into glNext
added Rect::getCenteredFill();
Merge pull request #504 from ryanbartley/stencilFix

Minor fix in FBO
Merge pull request #501 from pizthewiz/avfoundation-capture

use AV Foundation for capture on OS X
Fixed wrong Query.cpp path.
Switch mSwapIndex to size_t.
Disabled in iOS, available only OpenGL ES 3.
fix looping behavior

At present, the AV Foundation player just seeks back to the start, it doesn't reinitiate playback.
First pass at scoped culling object.

Builds on OSX, untested.