bugfixes, code standardization, refactoring

Bring PHP closer in line with Zend Framework coding standards

Occasional refactoring to optimize code and make it easier to read

Resolve the following errors when creating a map:

    PHP Notice:  Undefined index: admin in /var/www/php/record_map.php on line 56, referer: http://localhost/

    PHP Notice:  Undefined index: openedit in /var/www/php/record_map.php on line 59, referer: http://localhost/

    PHP Notice:  Undefined index: hidden in /var/www/php/record_map.php on line 67, referer: http://localhost/

    PHP Notice:  Undefined index: scavenger in /var/www/php/record_map.php on line 74, referer: http://localhost/

    PHP Warning:  stripslashes() expects parameter 1 to be string, array given in /var/www/php/maps_feed.php on line 40, referer: http://localhost/