Implemented data model in JS

This also depends on I3a9dfdc1 in DataValues extension.
Also introduces an abstract store interface which should be implemented in wb.API.

Most important missing part at this time is the connection of DataValues to the API for creating new immutable DataValue.Value instances, normalized by the API.

- patch set 5: updated documentation

Change-Id: Ia813ff9d1b66267da1e7ec4e3ef63db3438f89b1
Injecting entity data into JavaScript

Change-Id: I6289ae694af5a73ae5acad7b80814f42c52eaaad
Entities have claims, not statements

Change-Id: I54f71766dfe7ac20a0cca045617cdb955e72600f
Added tests for claim constructor

Change-Id: Icb2ce2ee2c697f00f7f6c5f3830cb8d07aa4983e
Added snak tests

Change-Id: I86931b1cf279ab67c6ffbda56a19e3f59e971284
Added tests for setMainSnak and getMainSnak in claim test

Change-Id: I1b6288935264878097c275082d99247135fdf271
Added Reference constructor and accociated tests

Change-Id: I68d4a05e9ceb40f72b4347af910e8aee0e810b84
Added Reference constructor and accociated tests

Change-Id: I68d4a05e9ceb40f72b4347af910e8aee0e810b84
Merge "Added Reference constructor and accociated tests"
Updated data model for Snaks to use DataValues

Change-Id: Ia0762a588275051c791339530a6ddbc005a0b0c5
wb.Api.createClaim now takes a wb.Claim object

* createClaim required three parameters for defining the claim and requires a wb.Claim instance now
* wb.PropertyValueSnak only takes a DataValue as second parameter now
* added wb.Snak.toJSON()
* adjusted tests for Snaks
* cleaned up some var names and comments
* test for createClaim is still missing, waiting for API support for creating entities

Change-Id: I2bd5d99574ffefc457841b2460622757b953158b
wb.Api.createClaim now takes a wb.Claim object

* createClaim required three parameters for defining the claim and requires a wb.Claim instance now
* wb.PropertyValueSnak only takes a DataValue as second parameter now
* added wb.Snak.toJSON()
* adjusted tests for Snaks
* cleaned up some var names and comments
* test for createClaim is still missing, waiting for API support for creating entities

Change-Id: I2bd5d99574ffefc457841b2460622757b953158b
wb.Snak has a getType() function instead of TYPE constant now

The constant still exists but as a property of the constructor. This allows to use someSnakInstance.getType() === wb.PropertyValueSnak.TYPE

Change-Id: Ie4ee9ff8b5d9a3e393b59c5c68abcd8f426afabd
wb.Snak has a getType() function instead of TYPE constant now

The constant still exists but as a property of the constructor. This allows to use someSnakInstance.getType() === wb.PropertyValueSnak.TYPE

Change-Id: Ie4ee9ff8b5d9a3e393b59c5c68abcd8f426afabd
Adjusted wb.Snak.newFromJSON() to new JSON structure

Change-Id: I3c7369c63c0713f8c52f564b96f4a169292326c3
(bug 40957) add statement to an item

* $.snakview now does the transition between edit and non-edit mode properly and displays property selector only initially, when creating a new snak.
* added $.claimview which initiates all snaks of a claim.
* added $.entityview which right now only initiates all of the claims of an entity. This will later hold the logic for grouping claims per property which is required for proper layout.
* in entityViewInit, we unserialize the 'wbUsedProperties' JS var and fill wb.properties with information about used properties.
* some minor fixes and cleanup

Change-Id: Ie06df21b5ebcdeb06dac3f36d37325b66454c486
Fixed @ingroup inconsistencies (mainly in lib and client), renamed Wikibase group to WikibaseRepo and made all groups part of new group Wikibase

Change-Id: I48a3ad28a78d55475f06f2e4b4ccbab2f6c3514a
(bug 40956) Initially saving new claims is working

Base rev id when creating claim is set to 0 for now. This has to be managed somewhere.
* newly created claimview, $.claimview.value() returns a claim now
* enhanced wb.Snak setters with basic type checks

- patch set 4: 'add' button works on pages without claims now.

Change-Id: I1764ba83fa0118127e725bd159078c5f5db48562
Can not create instance of abstract wb.Snak anymore

Also updated some test and fixed some typos there.

Change-Id: I6431acbb1b466477dce3b5a94b151df2325c4907
Can not create instance of abstract wb.Snak anymore

Also updated some test and fixed some typos there.

Change-Id: I6431acbb1b466477dce3b5a94b151df2325c4907