Conditionally display site name

Check if $site_name variable is set before displaying
Closes #20
Fix undefined index notice in template.php

Closes #22