Added support for canonical links for Search Engine Optimization, cleanup in the API