Refactor functions.php to use theme setup function

See #5