Making viewNeedsDisplay callback a static member function

Reviewed by: Hugo Lima
Using toStdString().c_str() to convert QString url to char*

Reviewed by: Hugo Lima
Adding window.open support

Reviewed by: Hugo Lima