document.hpp: move the implementation of the tts::document methods to a cpp file