Move WK conversion functions to Shared/WKConversions.cpp.

The motivation was to be able to use those functions on injected bundle
and the browser code.

Reviewed by: Rafael Brandão