Use PHP_SELF for document location.
Set current date from url.
Cope with different forms of data from linked data api.