Add POST handler for toggling lights