Optimizes page capturing.

Adds support for multiple phantom
instantiation. Creates PortManager.