Extract boilerpipe stuff into its own library.  Fix dependency problems revealed by pedantic.