Adding the applet code itself, providing a first quite usable but unfinished version.