adjusted retrieveTemplateData() to include $wgServer in api path
and display $Status message when an error is thrown

Change-Id: I7cb4acb3077bb99172fc84a3cf12a356a189f3fb
Merge branch 'php'