Improved wikibaseAutocomplete behavior, don't move cursor unnecessarily

In the case the the suggested autocomplete value equals the current value, the cursor was moved by the autocompleteString function. This is annoying in some situations, e.g. Typing "Urk" which is completed to "Ukraina", then hitting ctrl+A to select everything (perhaps one wants to copy/paste) but in that moment autocompleteString comes and sets the cursor to the end of the input field.
Also changed this to use third parameter (with "backward") in setSelectionRange function so one can just press arrow left to loose the selection without suddenly having the cursor at the end of the selection

Change-Id: Iaebb34e566cadb2dbe9eaf936ad03d431464162d
Minor code cleanup for wikibaseAutocomplete.autocompleteString

Added some comments, removed level of indention for main code, put initial checks together.

Change-Id: Ie687812e52dfe56bd99ed5710e4c7b743b67e7fe
(Bug 39366) Kill use of gettoken

To get an valid edit token for use with the wikibase api,
use action=token or query=info.

Change-Id: I7cee30eaec8b3c043fa04664861b40b6a6a75592
Cleaned up token handling for test cases

* Use action=tokens instead of query=info
* Re-use stuff in ApiModifyItemBase in ApiBotEditTest

Change-Id: Icb91b680a828d459c2dcaf3fbade9ea65a2e2e5d
Added getMatchingJoinedTerms method to TermCache

Change-Id: I6eea0a3eb4cc2f0fae55f86dd90a087092196849
Add support for self joins to getMatchingTerms

Change-Id: I7fa745106444bb073596069a48cfd3a8fc389e24
Added uniqueness restriction for label+description in the same language for items

Change-Id: Id1545c6685f241461f7b6359b0c8be4b7b8a2991
Update name of valueparsers extension

Change-Id: I330b24db6d8af28baacae52c07bf99280d30d500
Increment to 0.2 alpha

Change-Id: Iae3ff88e26d501d15b0b9bc8e83188a949138ae9
Added DataType to Property

Change-Id: If09354a44cd2e59a7f3e1e82ca109e8dba81c5e5
fix pollForChanges skipping changes

Change-Id: I381360e6e1affc186cc128326aaf8536c7fa89ce
fix item id in debug output

Change-Id: I787099bba51d0e2a3d9a44145130da125effc3a9
Make pollForChanges terminate optionally.

This adds two command line options that make pollForChanges.php terminate, instead
of running persistently. This is mostly useful for debugging.

The new options are:

 --once  Processes one batch of changes and then terminates.
 --all   Processes all changes currently in the feed and then terminates.

Change-Id: I708573d78cb0a9de35f8601b8adebd4e17eb14ee
Clients should not share tables per default.

The wbc_entity_cache and wbc_items_per_site tables should not be shared per default -
they are only shared if multiple clients use a single poll script instance.

Instead, wb_changes should be considered "remote" per default, so pollForChanges
can work out of the box.

Change-Id: I3629f7d65bb26dd674dbd45de9c04b985383e2d9
Note: Using wgSharedDB is pretty broken, this needs a more flexible design.
Merge "Clients should not share tables per default."
Revert "Clients should not share tables per default."

This reverts commit fd0a81a12f6d4ac2953e2b7fa0c9d492ea5b5ee6
Merge "Revert "Clients should not share tables per default.""
(Bug 40475) Changed a function call to wfTimestamp into a method call

Change-Id: Ie69bb3aac5206dec7eea800caad6e8b211a76c04
Merge "Increment to 0.2 alpha"
(Bug 40230) Fix for permissions

Small fix to generalize permissions to use EntityContent instead
of ItemContent.

Change-Id: Icebfaee5f3acab7f2b64a47af1898d0118d399df