Add head handling

Two commits:   
1) Minimal change to the deployed app.py.
2) Updates to testing code, including large lib it uses