Further cleaning up code for PT

This includes working dht22 demo and a big chunk of PT refactoring (nodes now have dependencies and explicit mutating behaviour).