Added a functions.php file and started moving some of the stuff to that.