Update to makefile, added dependancies to runtests and rundemos.
Updates to miniprofiler api to allow for arbitrary output files.