Moved input stream/filter functions into pdfstream.c, and a little re-namings