Linked active processes into a doubly-linked list

(may still need refactoring)