Make the map proto dynamic

This allows the proto to be changed in one place and effect the entire
site.
I really hate using global variables but those were the only ones I
could get to work.
I updated the examples since anything changed in PGM would be reflected
here anyway for continuities.