Add an example config
Made monitoring code use yaml config
Move the timeout to the global scope
First pass of interpreter for declarative handlers