make showPhoto smart about missing photos

don't bother rendering the photo template if there aren't any photos
fixes issue #20 (state-->trip association not unique)

added :uniq => true to assocation from state to trip
remove extra whitespace

make this as small as possible