Move javascript_include_tag in the head of the document (avoiding jquery_ujs loading error).
Include Cms javascript into the core app.
Update Gemfile.lock.
cms: Work-in-progress editing of documents (more work needed for new variants).