Bug fix for page/def editors and create deploy script.