Use shared_ptr for Mesh in MeshFunction.

Need to look into SWIG ignore for reference constructors.
Moved ignores for Mesh references to macro and added template parameters.
Resolve memory issues with Mesh in MeshFunctions via Python.
Fix for MeshFunction::mesh change in Exodus.cpp.