AP Threading modes
* added frame start barrier
* cleaned up some logic for the various threading modes
* added single threaded per context callbacks