jsonalchemy: create_record error catching

* The marc reader and wrapper modules now catches any errors
  while parsing MARCXML with legacy create_record and returns a
  ReaderException with details.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
records: API test case addition

* In response to 5daee2f, adds a new test-case to make sure
  an exception is raised when Record.create is called with bad
  data.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
deposit: edit button now shown fix

* Fixes Edit button not displayed.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: improved error reporting

* Improves error reporting for bibformat elements to include
  traceback in template when in debug mode, as well as using
  the Flask application logger to report the error.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
logging: warnings logging

* Refactors warnings reporting to use logging system by
  default.

* Adds best practice error handling documentation.

* Adds StreamHandler to warnings logger in debug mode.

* Unhides DeprecationWarning.

* Adds support for sending warnings to Sentry.

* Removes custom warnings wrapper.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
jsonalchemy: deprecation warning fix

* Fixes a deprecation warning.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: unicode decoding error fix

* Fixes unicode decoding error in bfe_keyword bibformat element.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
installation: Flask-Admin requirements version fix

* Flask-Admin version in setup.py is 1.0.7 but Invenio requirement
  was set to 1.0.8 causing DistributionNotFound errors.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
base: dead code removal

* Remove legacy unused functions and variables.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: dead code removal

* Removes leagcy code.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
cloudconnector: onedrive replaces skydrive

* OneDrive is the new name of the service previously known as SkyDrive:
  https://github.com/mk-fg/python-onedrive/commit/a69252e

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
installation: Pillow instead of PIL

* Deleting PIL since Pillow replaces it and PIL doesn't resolve anymore
  on PyPI. NB: Ubuntu and Debian python-imaging package uses Pillow.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
travis: extra requirements to tests

* Adding -img and -extras to the installation process, so if anything
  break, we might get notified.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
installation: virtualenv based path for static

* Relative path fails if you're using symlinks for src/invenio or want
  to use a different directory layout for invenio.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
installation: Flask-Assets 0.9 and Jinja2 2.7.2

* Removing webassets from the requirements as its a direct dependency of
  Flask-Assets.

* Upgrading Jinja2 to 2.7.2.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
assets: working combined assets

* Fixing `static_url_path` feature.

* Fixing that all assets are created correctly using:
  `url_for("static", filename="css/spam_and_eggs.css")`. For
  specific modules, it's handy to give the module name as well,
  but it doesn't change anything, e.g., "annotations.static"

* Using `STATIC_MAP` to distinguish between modules and external
  resources.

* Using `static_folder` to point to the generated files.
  A hack is used to index the static files living in `invenio.base`.

* Relying on ASSETS_DEBUG for webassets debug mode.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
base: documentation fixes

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
grunt: jquery-migrate via bower

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
travis: npm, bower and grunt during setup

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
search: facet registry

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