Removed pyqtgraph version dependency

Added a copy of dock.py from the pyqtgraph library. This way other users
don't have to download the latest version of pyqtgraph to have closable
docks.