Refactored to prepare for mocha inclusion
Mocked LaTeX invocation during unit tests
Logging warning upon failed LaTeX invocation
Fixed cmdline loglevels, increased robustness upon failed LaTeX invocation