Very simple tests of exporting functions
Better support for knitr exports

Now depend on all object dependencies, right down the graph.  This
will certainly export more than needed (which might be slower than
ideal) but will make running with knitr most similar to running in a
script.
Some basic testing for knitr targets