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

I see you have an editor that removes trailing spaces!  Like every good editor should.  I'd like to enforce "no trailing spaces" if at all possible...