Fixed garbage collection mechanism for Contents and removed SkeletonThread from the global variables.

Change-Id: I8f0858bb4c735de1522de42628f55b17ef7b2301