#268 Added ontology search service new API use. Refactored, cleaned up, sundry other minor improvements. Ready for piecemeal upgrade to the new API, but cannot merge to master until it is completely done.