added sample code for overwriting templates

As I and some other guys on the net found it unclear on how to overwrite templates of extensions/themes, I added some sample PHP code illustrating on how to do it.

Please also refer to https://github.com/pagekit/pagekit/issues/188.

Additionally fixed some wrong references.