Use Reader instead of threading TreeParams
Improve code format
Add helpers for fetching config
Merge pull request #32 from bobgru/reader-monad

Reader monad