Quick fix for 'KeyError: "flagged"' on new session

Fixes #185. We need to set the flagged variable on login, since
most people will clear sessions between checking for replies.
Simulate session logout in test_reply

Realistically, clients will clear sessions between submitting
docs / checking for replies, so we should simulate that.
test.py will now fail before 195d0ef and pass after, as
expected.
Add session-clearing to all tests that need it

Add test for logout (clearing a session) in the source
unit tests. Also clear sessions in integration tests
whenever a source/journalist is probably going to
close their browser.
remove direct links to external sites from source templates, fixes #195
Warn people that they cannot use Percona with setup_ubuntu.sh
Warn people that they cannot use Percona with setup_ubuntu.sh
Add failing test for issue 198
Add validation on source side of journalist input
Sanitize journalist reply; test still broken
Add flashing to journalist base.html
Fix flashing for journalist base.html
Flash error to journalist if input is bad
Fix location of flashed messages
Merge pull request #206 from pemulis/master

remove direct links to external sites from source templates, fixes #195
Merge branch 'master' into fix/flag_keyerror
Remove unnecessary path check, add reasoning for _logout
Simpler solution to avoid KeyError
Merge pull request #188 from diracdeltas/fix/flag_keyerror

Fixes #185 and modifies tests to clear sessions whenever a source/journalist will likely close their browser.
Moves the config file to a config submodule.  This allows us to easily
separate out the configs for each environment, as well as the config
vars that are shared.  This is also structured to retain the ease by
which setup_ubuntu.sh replaces vars using sed, by having different
environment configs being separated into different files.
Modifying setup_ubuntu.sh to modify config files in new location