All changes from my functionality

changes in index.php, download.php, functions.php, testcases.php.
Ignore any java files that my have been created while running the
source, these files are created on run in the handler folder. This
commit misses the currlang.php