make queueinputstream

/**
 * This is a fairly specialized input stream that pulls data from a scala queue.
 * If the queue ever becomes empty, available will start returning 0.
 */