Create the MapView on beforeRender

This was the source of much confusion. Think of the previous code as
having mapView as a class attribute. Meaning it wasn't being correctly
removed from the app.
onClose -> cleanup
console
app.navigate backward compatibility,