move configuration into global state
implement hooks (based on lazybot)
add more (rough) plugins