Work on linked lists for pmap

Millions of things are currently broken, and TODO's are being scattered
everywhere, but it's a start.

At some point, I plan to test the effect on speed of splitting each linked list
into one containing normal (not energy) particles, and one containing
all (energy and not energy) particles.