Clean up depends and exposed modules in yi.cabal and fix some ghc warnings.