Revert "Revert "Moved init of libraryManager and RequestManager from spell.start() to spell.init()""

This reverts commit e12bd0297418f099e8185c594c07598ae4398be7.
refactored meta viewport generation code