More work on authentication
Fixed bug in Java detection code
Renamed get_os_arch to get_java_arch for clarity