Added functions.php

Control length of excerpt and function to call first uploaded image from
post as default fallback for the featured image.