initial refactor, moved js to app.js, breaking code into functional sections

This is the start of the refactor.  I've taken everything out of the global namespace and tucked it into the ebt object.   I've made a few name changes and cleaned up some but didn't make any radical changes. Next step will be cleaning up the infowindow logic.  Once you're comfortable, then we can start really experimenting with the UI.