RI-Tree Cleanup, Fixes and UseRiTreeQuery Setting

1) Build got broken as a merge check-in conflict between turning on Code Analysis and warnings from RI-Tree check-in.
2) Adding UseRiTreeQUery setting to enable performance measurements in the same server by changing settings from Azure management.
3) Disabling RI-Tree since it throws a "The data types decimal and bigint are incompatible" exception.
4) Encapsulating RI-Tree migration logic and triggering only when bitmasks table is empty.