Moved remaining non-redundant PlaceManager and Activity tests into the new PlaceManagerTest.
Inlined the one-liner functions that only existed to support PlaceManagerUnitTestWrapper
Fixed initial size and resize issues that came with the merge of hal/uf-97

Includes unit tests for the stuff that regressed.
Fixed the shutdown problem for JavaScript perspectives that I caused in the recent refactoring