Added entity functions to the Lime library
Also replaced PipedInputStream and PipedOutputStream with FastPIS and FastPOS to fix a weird synchronization bug