Supply-side Management and Security on the Smart Grid