CMS-4066 Use Nashorn instad of Rhino. Implemented scriptlibrary registry.