Can now extract vars from markdown templates.

Probably going to have to change the way I build everything in order to
use them properly though. Thinking about trying to bubble up the changes
to other files in the directory tree before building them.
Added vars
Changed img_dir to hide from context.