Homepage module and some enhancements

Enhancements:
* Replaced deprecated function calls in categorize module.
* Fixed a caching bug in `theme.pages_list()`
* Moved comment sanitising to helpers.php as `sanitize_html()`
* `sanitize_html()` also strips obnoxious HTML attributes (e.g. inline style and JS events).