extract token creation logic out

--HG--
branch : hold-input
allow sound to be played immediately after clicking

--HG--
branch : hold-input
add holdEvent magic to experimental script too

--HG--
branch : hold-input
move holdEvent to another file

--HG--
branch : hold-input