API for adding extra layers to the print, which are not in the tree of t...

...he application (needed for the printing of vectorlayers in DBK-component (3rd-party-component).

Example:  https://gist.github.com/mtoonen/7463484c8a70578a2e40