Added state management to TODO.
Basic "ingress"/"egress" support and example: unit testing.
Documentation update.