Better --debug info and exception handling
Browser(): allow forcing the Referer header
Browser(): get_json() → post_json()
Use new referer= and post_json() functionality of Browser()
Add some empty lines for clearer structuring