refs #8491 - added documentation and refactoring of code into MapUtil.js.
refs #8491 - Removing unused css and code from core api.