Extract event processing into a function
Extract statement handling into a function
Remove jQuery from handle_input
Remove last references to jQuery

- Not really getting much benefit from jQuery anymore
- This can of course be reverted later on
Add some more refactoring notes in case kid wakes up
Limit handleX side-effects to dataset for now

- The solution is probably over-generic,
  but communicates it's intention better.
  This brings command support (#12) awfully close

- Noticed that uitest times are 10x faster
  Was jQuery the reason?