Clean up and refactoring
- Remove unused methods and variables. E.g. **Cavity.isSnapshotSimilar() **is it used?
- Move Map<String, String> resources to RFLDocument. It should NOT be static. that way we will be able to have different resources for different documents.