Implement reading password from user without echoing characters.

This is done by invoking Java 6-specific functionality only when we are
running on Java 6 or higher. When using Java 5, the previous method to
get password (echoing back characters) is used.