Related libraries are now merged into {<type>: [<library>,...]} type
related_libraries are now only included on searches and added the root_library attribute
searcher and matcher now uses the new related_libraries and root_library from media instead of using extra db queries