Add COPYING.txt with GPLv2 license

Fixes #1164.