fixed some reference errors
more reference errors
implementation of _repr_pdf_() for Tree
hide console window
base64-encoding the pdf is required, contrary to the ipython documentation (this only works in browsers)
use png instead of pdf due to it's wider support (in the qt console and in firefox)
Merge pull request #692 from jskda/pull_request.684

Pull request.684