Memory cleanup

Fixes up all the memory leaks from "es" etc. outside of the mock code. Branch still needs to have ``add_ref`` parameter added to all ``*_FromSpotify`` calls before we can consider merging. At that point all known memory issues should be fixed.