Working Flask example code for asynchronous HTML updates with Socket.io
Fixes some bugs found in https://github.com/shanealynn/async_flask
For more info read the great article here: https://www.shanelynn.ie/asynchronous-updates-to-a-webpage-with-flask-and-socket-io/