Import 4.00 source with earlier changes rebased

This attempts to follow the 2.x/3.x style, but some of the utilities
have changed and it's not clear they can be used in the same way.
Update debian files for 4.00

This is mostly output from running create-debfile in the debian
directory.
Remove execute bit for files that don't need it

Mostly cosmetic, but makes life easier.
Add back needed acconfig.h files and remove config.h.in

Might switch to new style autoheader later, but for now just get the
build working again.
Rename .bzrignore to .gitignore
Remove and ignore COPYING files

These are just using the automake defaults and the real licensing terms
are in the LICENSE files. Probably should use automake --foreign so they
don't get added during the build.
Ignore all generated files

This hopefully means that you have a clean git status before and after a
build.