add plugins callback for light creating, moved all gimbal code to the plugin