Fix couch views to not break on single items

A single username or a single log entry was causing an xml->couch
conversion with a dictionary instead of an array. Updated all relevant
views to be able to handle either coming through.

Addresses http://manage.dimagi.com/default.asp?60029