many changes made, read extended

aphorisms.php is now edit.php
photos.php is now new.php
have Ric's ajax incorporated
fixed wrong url