Restore associated sessions with User objects

The Users API handler previously displayed a list of sessions associated with all users, before the database code was refactored.  This restores that functionality.