work without referer and extend meta data

If HTTP_REFERER is not defined we return SERVER_NAME.
Additionally add meta data for referer.