Adding three versions of thread and heap dumping scripts. dump.sh is probably the best one of all.