Adding delay/ttr support

- adding delay support (via new table)
- adding ttr support (via maintenance ops)
- refactoring maintenance code
- updated tests for delay/ttr