Replaced stale version of gen-module.bash.

Ahh, the perils of too many repos!

This commit replaces the old version of gen-module with the version
that was supposed to be originally committed. The new version has
support for .mk, .sh, and .bash.

It also properly formats flowerboxes to use AGPLv3 rather than
Apache!
Replaced Apache boilerplate with AGPLv3.
Implemented debug module.
Moved event/test/src to event/test.
Current src dirs really are inc dirs. Renamed.