Bug fix: environments with figures in latex
Clear the Sanbox for running code for each document
Tests and small fixes to Winston support