Show an error when $EDITOR/$PAGER are unset.

This catches an exception that otherwise crashes mitmproxy.

fixes cortesi/mitmproxy#71
Merge pull request #74 from kanzure/editexception

Show an error when $EDITOR/$PAGER are unset.
remove trailing whitespace
Merge pull request #75 from kanzure/whitespacefixing

Make trailing whitespace more consistent
fix external viewer using shlex

This makes spawn_external_viewer not crash when $EDITOR or $PAGER have
spaces or multiple arguments.

In addition, spawn_external_viewer now chmods the file to read-only to
remind users who use only an $EDITOR that this function does not read
the file when the user returns.

Also, some of the redundant exception case handling for editing has been
consolidated.

fixes #79
show current filepath in status bar

Showing the filename is useful when looking at multiple .mitm files
simultaneously.
Merge pull request #81 from kanzure/issue/79

Fix external viewer function by using shlex
Merge pull request #82 from kanzure/show-filepath-in-statusbar

Show current filepath in status bar
adding some simple authetication code to limit proxy access
adding some simple authetication code to limit proxy access
Merge pull request #83 from rouli/master

Adding some basic proxy authentication code
Start solidifying proxy authentication

- Add a unit test file
- Remove some extraneous methods
- Change the auth API to make the authenticate method take a header object.
Test and robustify BasicProxyAuth.parse_auth_value

- This is partly in preparation for moving the implementation to netlib
- Also add an unparse_auth_value for testing (and use in pathod once the move is done)
More work on proxy auth

- Strip auth header if auth succeeds, so it's not passed upstream
- Actually use realm specification to BasicProxyAuth, and make it mandatory
- Cleanups and unit tests
First draft of OSX transparent proxy mode.
Better error handling for transparent mode remote address resolution.
Much-needed facelift for the docs.
Docs: make nav sidebar work
Preliminary changelog.
Docs and Readme

- Don't keep a full duplicate readme just for pypi. Pypi really needs to
learn to read markdown.
- Style and content adjustments