Refactor schema backward compatibility check

1. Fix a bug that will leave a store created even when exception has been thrown
2. Consolidate strings used by tests
3. Consolidate backward compatiblity check into StoreDefinitionUtils