Starting to move functionality to external js scripts
Renaming res/ to web/, as it contains the web interface
Adding progress bar