installation: dependency links renovation

* Prepares `setup.py` for Invenio v2.0 release for pip<1.6.
  (addresses #1797)

* NOTE use `pip install --process-dependency-links -e .`

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
formatter: fix Bibfmt model import

* Fixes broken import of `Bibfmt` model.  (closes #1781)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
legacy: fix javascript on /record/edit

* Addresses issue with record editor not loading record data.
  (closes #2143) (PR #2178)

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Petr Broz <petr.broz@gmail.com>
legacy: fix broken import to create_record

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
deposit: minor edit action bar fix

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
communities: ckeditor toolbar changes

* Adds Mathjax support to CKEditor and removes certain other buttons.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
base: missing MathJax config variable

* Adds missing config variable CFG_MATHJAX_RENDERS_MATHML to default
  configuration.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: master merge fix

* Reapplies 71fe41cacf6bdb124433aca1a40acafdeaf361af which got
  overwritten by the large master to next merge.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: format record extra context fix

* Fixes issue with passing extra context variables to format record
  introduced during merging new changes from master.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
bibupload: support for strings in utils

* Adds support for strings instead of only recstruct in
  bibupload_record helper function.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
knowledge: PEP8 and PEP257 improvements

* Removes `__init__` methods.  (PR #2184)

Co-authored-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
workflows: passed data check

* Adds a check that passed data to the workflows API is indeed
  a list.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: wrong default position

* Fixes the default position of workflows when restarting a
  workflow.  (closes #2177) (PR #2186)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
linkbacks: fix tab visibility if excluded

* Adds module to excluded packages and disables tab in detailed record
  view.  (closes #1707)

* NOTE Adds deprecation warning for linkbacks module.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
oauth2server: redirect uri validation fix

* Fixes security issue where redirect URIs was not correctly validated
  against the values provided by the client. (closes #2175)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: fix form file attribute

* Addresses issue with missing legacy `file` attribute in form fields.
  (closes #1900)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
base: fix missing default config value

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
sqlalchemy: addition of Encrypted column type

* Adds submodule `types` inside `invenio.ext.sqlalchemy` package.

* Refactors the `types.py` into separate packages.

* Adds of a type named `Encrypted` that will be used for
  encrypting and decrypting `access_tokens`.  (PR #2173)

* Adds of pycrypto>=2.6.1 to `setup.py`.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
restful: pagination fixes

* Refactors the `restful_pagination` file.  (closes #2102)

* Simplifies `link_header` method when concatenating links into
  one string.

* Renames file `restful_pagination` to `pagination`.
  (addresses #1724)

* Improves PEP8 and PEP257.  (PR #2087)

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
formatter: include 'cc' in RSS <channel>'s <link>

* Adds collection link to channel if the current collection is defined.
  (addresses #2013)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>