Fix Memory Leak.

Was using an Activity as the key in a WeakHashMap (good), but the key object held a strong reference to the Activity (bad) which meant that it would never be released.

Should close #77.