Fix ref counting bug that was causing crashes on most sites.
Merge pull request #13 from pcwalton/refcounting

Fix ref counting bug that was causing crashes on most sites.