(bug 44263) SRF\Gallery Fix recursiveTagParse() issue for captionproperty

+ Replace recursiveTagParse() with recursivePreprocess()
+ Move into the SRF namespace and use SMW\ResultPrinter
+ Use getContext()

Change-Id: Iba77c82318fb47da61c2edf6863b271bce5cbd9f