Remove duplicated logic from proxy.

The proxy keep track of if newPage is being called for the first page or not. This is an application responsibility and has been moved to the caller of mobproxy.
Reformatting.