Refactored the ontology-access APIs. Next step - refactoring the UI for the ontology-access.
Fixups. Squash into this commit.
Refactoring.
Moved the OntologyVersionRecorder listener.
Merge pull request #697 from soLEED/issue-refactor

[refactoring] Extract the HPO and OMIM ontologies into separate modules
Issue #698. Hardcoded port in solr-access-service component [AbstractSolrScriptService.java]
Merge pull request #704 from soLEED/issue-698

Issue #698. Hardcoded port in solr-access-service component
Patient JSON export/import.
This is work in progress.
Has the basic structure and interfaces setup.

- Created a separate package (org.phenotips.data.internal) for classes that hold patient data. Each class is an implementation of a new interface (PatientDataSerializer).
- Each of those classes implements a function that reads data from the wiki, exports json, and imports it.
- Export function is not implemented yet.
- So far, each class ROUGHLY corresponds to a class in xwiki (PatientClass, OntologyVersionClass).
- The idea is that the PhenoTipsPatient class would store all of its data in classes implementing PatientDataSerializer, rather than storing and dealing with data itself.