WIP jasmine: adaptation to requirejs

Makes jasmine compatible with requirejs. I will look if we can reuse boot.js from jasmine. It looks like copy-pasted with small changes only.

Fixes: https://github.com/inveniosoftware/invenio/issues/2467