physics-bh, all: finalized thread distribution, use global externs

Couldn't finish multithreading the BH generation today. Close but no cigar. Still need to synchronize halfdims across the threads and figure out a way to filter the objects. Also might have broken the xyz writer, will see later. Also, no more multiple declarations of global variables, now we're using externs. For everything.