flgproc/demoserver cleanup by PEP-8
refactor InputTcpHandler to use method for sending text
use project wide FLAG_PATTERN
make submit server port configurable and use in demoserver