keyboard: improve creation of reference definitions

always move after the current paragraph, and keep selection.
bib: couple fixes

* make extensions of bibliographies to search for configurable.
- json bibliographies no longer read by default.
* don't try to load data from invalid json files.

should fix or improve issue #55.