Added WordPress loop

Added the WordPress loop to all the main theme files and added in a few
more custom functions specific for the theme loop