[1067] Maps function/service IDs to themes

Added a tool to build a dictionary of service/function id -> theme mappings so that we can look them up and return the most frequently specified two themes.

This is a little more complex than our current theme determination so it might take some work to merge it in.
Updated harvester to take into account primary and secondary themes