Adds optional locals hash when rendering view hooks for plugins

Example use case: passing a form helper object to a plugin view while making concerto_content_scheduling plugin. Needed in order to use recurring_select and to save the associated schedule with the new content.