ios: Add program logic to Power Outlet Control app