Resource Control Theory