Prune unused lucre code. Fix proto automake for dist tarball.