Linked active processes into a doubly-linked list

(may still need refactoring)
Refactor and remove TASK_LIMIT limit.