Move infinite scroll code into external JS, set current page and total pages variables in the theme
Move theme copy to render() command
Merge branch 'master' into story-nav