Update figure rendering for new directive system
Add implementation for doctest block
Add doctest and some explicit-and-directive parsing
Shift stuff around; tweak figure rendering