Added `gpl.txt'

All the license headers claim I'm distributing it =P.
Altered `main()' to work with test DB manifest.