Remove debugging lines.
Remove UpdateMixin.
Refactor list_articles.
Don't sort count queries in paginate.
Add error code to json error responses.