Update Core from external sources

Two groups (contractor for TNC and UC Davis) have made changes to core framework components after Azavea last modified the project.  These changes did not make it to the upstream repo, so I am including them here.  I did not change the functionality, though I did make some non trivial style and syntax changes from the original, including:

* Renaming variable to better indicate their use
* Remove console.log statements
* Remove use of `eval`
* Move styling code to css file
* Spaces vs Tabs
* Remove global variables
* Add more consistent semi-colon line termination
* General structure and whitespace use