Factored out references to OWLOntology
Optimised imports, added guava dependency for precondition checking
Generalised the output stream parameter for writing documents

Changed the output stream parameter from DataOutputStream to
OutputStream
Added guava dependency
Changed to use guava precondition checking

Uses guava precondition checking to check type markers are in range.
Moved ontology document micro api from top level