legacy: xmlmarclint import fix

* Moves import of sys module into main() function for things
  to magically work.

* Removes legacy "version" parameter.

* General PEP8/PEP257 fixes.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
docs: missing mkdir command addition

* Adds command `$ mkdir -p $HOME/src` to installation tutorial.

Reported-by: Kevin Bowrin <kjbowrin@gmail.com>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
oauth2server: missing access token in test case

* Fixes missing access token in test case. (closes #2166)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
WebAlert: CSS cleanup

* Improves compatibility with Bootstrap 3.  (closes #1644)

Co-authored-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
login: fix redirection to secure page

* Fixes an issue when endpoint needed view arguments to generate
  `secure_url` for comparison with `request.base_url`.  (closes #2052)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
travis: minimal requirements testing

* Adds script for minimal requirements generation from `setup.py`.
  (addresses #2044)

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

* Adds a table_exists API function for use in upgrade scripts.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
tags: initial upgrade

* Adds initial upgrade script from Invenio v.1.x for tags module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
pidstore: inital upgrade

* Adds initial upgrade script from Invenio v1.x for pidstore module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
records: initial upgrade

* Adds initial upgrade script from Invenio v.1.x for records module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
formatter: initial upgrade

* Adds initial upgrade script from Invenio v.1.x for formatter module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
messages: initial upgrade

* Adds initial upgrade from Invenio v.1.x for messages module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oauthclient: nullable extra_data column

* Upgrades remoteACCOUNT.extra_data column to be nullable.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: initial upgrade

* Adds initial upgrade from Invenio v1.x. for workflows module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>