Move text file loading code out of cursynth
Factor text file loading code (aka 'slurp' function)