In ResourceAnalyzer, make $resource_types static
Modify CodeAnalyzer and ResourceAnalyzer to directly operate on a node tree

To that end, an AnalyzerVisitor is used to create elements for relevant nodes
using two new factories, CodeElementFactory and ResourceElementFactory.
Remove AnalyzedPHPFileTest as it's obsolete

The interface ("code element hierarchy") it is testing is not used by VIP-scanner
anymore; instead, the node tree itself is traversed by analyzers.
Remove DirectoryNodeVisitor as it's obsolete