refactor: rename cleanString -> removeTagBraces
combine template/{{header,footer}=>whole_page}.tpl
extract method isThread()
extract method getImageSizeLimits(), condense buildPageContent()
whitespace changes
move body tag to templates/whole_page.tpl

introduces the absurdly-long-named function
renderPageWithContentAndBodytagAttributes
extract method setMessageInTemplateForPage()
move rendering for reply mode to template file
move max_file_size rendering to template
move templates/{=>thread}page_body.tpl
move templates/{manage_page => managepage_body}.tpl
extract templates/thread_wrapper.tpl
fix index page rendering only one thread
move manageInfo() from inc/html.php to imgboard.php

now html.php only concerns itself with rendering the templates
any remaining html stuff is in imgboard.php, in the manage section.
fix rendering order of posts in a thread on index page
fix rendering of omitted replies