Fix preview function for UG/PG

Namespaces preview method for ug/pg programmes. Requires updates in of-course + PP API.

Requires:
https://github.com/unikent/programmes-plant-api-php/pull/15
https://github.com/unikent/of-course/pull/211