Move static treeNodeCache from SHAMap to the Application

These changes address two JIRA issues:

 - 291 unittest reported leaked objects
 - 292 SHAMap::treeNodeCache should be a dependency injection

Yeah, I like an editor that trims trailing spaces.  I'm using Sublime Text at Vinnie's recommendation and I like it a lot.