Restructured the source code in a proper package hierarchy.
Added proper license terms (GPL).