Refactored site.rb,

I tried to clean a bunch of the methods code climate was complaining about.