/title url hook

Integrated the code to get the title of a web page.
Changed /title to return json