Improve browser process handling

This fixes the DELETE request and makes sure the app accurately tracks the state of the browser process.

The state-tracking problem would occur when chrome would launch a new instance as a child of an existing window, causing the pid from Popen to immediately exit while the window remained open.