moved all the libyaml checking stuff into its own file

That makes me feel a *little* better, at least.