Support publishing of nested xblocks

Added a new publishing sidebar to the container page. Added unit tests around publishing of nested xblocks, and fixed a bug that it exposed.