Add proper plugin support.

All .sh files in plugins are now sourced by update, and all .m4 files in
plugins are included in each m4 run.

Git support has been moved from header.m4 to plugins/git.m4.

This still needs documenting.