Major refactoring of return values to help provide an option for restricting returns to JavaScriptObject and primitives (not Java Objects, which cannot be marshalled via JSON, etc.)