testing flask platform - more complicated app (from http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world)