added su_srv_getpid() API.
minor fixes, API cleanup.
Added a few convenient methods to the Java shell API.