Improved Resource Handling

Improvements to requests/caching in the ResourceLibrary library
(including a fix for missing relation lists), added map of tracks to the
resources they're derived from, and added MIME inference library.