Add tmpproj tool

Semi-initial script dump (with some extra mods for publication),
need to refactor some stuff and redocument.