Add rel canonical to derived copies

I have added code to base.coffee that checks to see if the json returns a parentId. If so, it is a derived copy and a rel='canonical' tag with the parentId is added to the head of the page. If not, no tag. 
Code should use 2 spaces for indentation.  A number of lines throughout this file are using 1 line (which should be causing Travis to fail too).