Implement Pagination for Content libraries (SOL-4)

* **Background**: This PR provides pagination for content Libraries in the container view, when displaying the blocks contained in the library.
* **Jira tickets**: Implements SOL-4
* **Discussions**: Architecture discussed extensively on the wiki and in meetings, then the revised proposal was presented to the Arch Council on Oct. 21 and given thumbs up.
* **Dependencies**: https://github.com/edx/edx-platform/pull/6046 (merged, in feature branch https://github.com/edx/edx-platform/commits/content-libraries)
* **Sandbox URL**: http://sandbox.opencraft.com:18010/library/library-v1:TST-X-01+now
* **Internal code reviews PRs**: https://github.com/open-craft/edx-platform/pull/9 https://github.com/open-craft/edx-platform/pull/18
* **Partner information**: 3rd party-hosted open edX instance, for an edX solutions client.

@cahrens parameterized the whole test suite. It basically now works in two modes: with ordinary container and with library container. It tests common functionality found in both of them. The change was to wrap entire test suite into a function with some parameters and call it multiple times. As a result, every line changed indentation, and github diff viewer is unable to detect that, hence such a terrible diff.