Bug 1110687 - RoomsDB: Return an array instead a cursor in getEvents method

I think  it would be better:
cursor.onerror = error => reject(error);