Switched the IO buffer size to 64kB
Improved session management with flask permanent feature
Fixed the functional test to set the cookies only when needed
test/workflow.py: addressed flake8 complains