Switch from JLine 1.0 to 2.10.

sbt and scala shells behave differently, since the former uses JLine 1.0, while the latter uses a customized version of JLine 2. This is particularly true on FreeBSD, whose terminal is not supported by JLine 1.0. Here is my attempt to switch sbt to use the modern JLine 2 API.