Decoupled interpreter from filechooserdemo. Interpreter now takes text,
throws events.