Test main for multiple facts.
Started refactoring of web app.
Merged.