Passing the cleanup handler as a rvalue ref
Removing useless headers
Adding IsOn, IsOff, and Toogle function for the PowerController.