Add middleware support.
Add safe-fns middleware. Close #106.
Fix safe-fns for mouse-wheel handler.
Implement functional-mode middleware.
Change version to 2.1.0-SNAPSHOT.
Add manual test for fun-mode.
Merge branch 'master' into middleware
Make :on-close take state in fun-mode.
Run draw function before update called for the first time in fun-mode.
Add state-atom function.
Update fun-mode middleware.
Merge remote-tracking branch 'origin/middleware'