Issue #163: Convert test variables to state system.
Issue 163: Reseting static for states before retrieving e-mails.
Issue #163: Reset state values globally after every individual request.
Merge pull request #128 from quicksketch/163/test_email_collector

Issue #163: Convert test variables to state system.