Fixed template editing, fixed bug in leaflet js injection

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is ahead of 'dev/master' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#	modified:   RDMap.module.php
#	modified:   action.admin_add_template.php
#	modified:   event.Core.ContentPostRender.php
#
# Untracked files:
#	moduleinfo.ini
#
