Plain: improved performance for pipelining

Also upgraded dependencies to scala 2.10.3.
plaintext and json tests should benefit from the revised algorithms.

Thanks in advance for your support.