add post request for document creation and move tex2png into png slug
only create pdf if it does not exist yet
use FileUtils to create subdirectories