start of haskell rewrite of scripts

midiscript is a bit too slow. it can be made faster,
but doing everything with regexes is also a bit fragile.
plan is to move to a *small* haskell program directly
using the midi library.