split out sndfile manager code into its own file; move a couple of utility functions...