Made the module.js file in panels truely optional. It is only loaded when a controller is detected in the module.html template.