Add configurable location debugging support to Qt 5 GUI

Prints raw location data to standard output if enabled in the Options->Debug->Location debugging.