Added json encoding functions for Qt < 5.3.0
Make proxy port configurable and show error message if cannot bind.
Support HTTP Range in header.
Stop the file notifier on socket disconnection.