Add license headers.

The license for the IRC bot is GPLv2+. This commit updates all the C files
and adds the GPL license header.