Make findModuleType testable by exporting it.
Doc and comment fixes.
Refactor metadata crawling in anticipation of more and better bower heuristics.