refactored QLearning support classes
Merge origin/vivisect1 into vivisect1