Add a function dumping out a GBMI stack trace of the V4 engine.

Add an exported C-function dumping the JS stack trace which can be invoked by a debugger with the address of an execution context it finds in a complete stack trace. Will allow combined C++/QML stack traces in gdb.

The commit is cherry-picked from Qt 5.3, tested to work with 5.2. as well.