Updated webserver.py

Many changes, see the README.md change log.