Sync x2 /2

This is based on ywwg:sync-insta-rate.

Implement master sync for tracks that are x2 or /2 bpm ratios.  So a 70bpm track will line up with a 140 bpm track.  The engine will pick the ratio that requires the least amount of rate adjustment to achieve a match.  From a user perspective it should Just Work.  Engage Sync on both decks and start playing.  Things like quantize should work intuitively.

This was a really tricky change that required a lot of head-desking and careful ordering of calls.  I tried to comment things to point out where the sticky stuff lies.  I would be very happy to push this to 1.13, but it's ok for testing now.

Includes new unit tests, and fixes to the testing infrastructure which had some major problems that none of our tests were relying on.
This is no issue of this PR, but this function looks a little bit confusing. 
Since I do not fully understand it, it is hard to give good hints, but let my try anyway.: 

Why you return 1.0 in some cases with and without setting m_dSyncAdjustment before. 

It looks like the function does much more then returning SyncAdjustment, can we improve the name? 
"calcSyncAdjustment" ??
Is m_dSyncAdjustment  m_dLastSyncAdjustment? 

m_dSyncAdjustment is set from other functions and is validated in  getSyncAdjustment. Can we centralize this by using an extra flag like m_resetSyncAdjustment?