Make writing local browser tests easy.

This makes writing local browser tests easier.  For a commented diff see https://codereview.appspot.com/40190043/