JSM: Fix issues related to threading
J.Console: Add support for JPATH variable and for specifying PORT and NON-INTERACTIVE options from command line.