memory leak and weakref fixes - fixes #56
added specs for memory leaks
Merge pull request #58 from motion-kit/bugfix/issue56

memory leak and weakref fixes - fixes #56