Fixed figure and cache path to relative.

Figure and cache paths are now relative to weaved document.
Closes #7 and #10.