Extract link header construction to new function.
Fix SQLAlchemy bool error.
Extract helper functions from index_articles.
Require login for revision history.