Added missing primaryKey, fixed IDBCursor ranges and IDBIndex count method

This also inlcudes #82, #94 and #99.