Move build_paginator and build_html out of build_files
Fix test cases for filters.markdown