More flask tutorial stuff.

4 and 5 took longer because I'm using Python 3 instead of 2.7, but this
can be used as an example for anyone trying to do the same. The
differences are listed in the README.