Switch form template back to POST
Tidy up, add doc-strings, comments. Check coverage; still 100% on app and handle_connection