Studio support for creating and editing libraries (PR 6046)

Duplicates https://github.com/edx/edx-platform/pull/6046 to allow Marco to review without spamming the reviewers on the original PR.