Refactor modals to be initiated from templates rather than DOM elements.
Let new modals knock out old ones.
Adjust client-side tests for new modals.
Merge pull request #370 from mapbox/modal-refactor

Refactor modals