Factor out article index routes

I factored out almost everything in the article index routes (full page
and partial) with a utility function. The only difference between them
is one boolean passed to the function.