use jline instead of java-readline. jline can be added to SVN thanks to its BSD license. plus some small cleanup.