Remove hard-coded constants, and reference metadata objects instead.

Move XmlaConstants.ProviderType to Database.ProviderType.

Change MDSCHEMA_CUBES.CUBE_TYPE from UI2 to String.