cainteoir.cpp: use cainteoir::document directly instead of a custom document class