Added pagination to the Site detail view

I added the pagination and also changed the return value of attrs in the detail
view.  It was returning either the attrs or a list containing an empty string.