Initial commit of webapp.py, after going through parts 1 through 3