added support for flash messages
moved template-related code from app.js to template.js.
moved template-related tests from app.test.js to template.test.js.
split out persona-related tests into persona.test.js.