do not read in deleted pages
figuring the latest attachment properly

the last approach did not work, as the object with the highest id
is not necessarily the newest one. now use the version number
which should be better suited to the task.

also add two ugly "end of pipe fixes":
 - spaces after links got eaten by someone, put them back
   (even if they were not there in the first place ...)
 - the patch to support default paramter names
   did not really name the new parameter
both fixes up wiht regexps ...
XWIKI-9830: XAROutputWikiStream: attachments are truncated after 4096 bytes

actually bytes arrays can be base64-encoded in chunks, if the chunk size
is divisible by three - otherwise the encoder will embedd EOF markers