Reorganization of functions.php

Allow some functions to be overridden by child themes.