HPCC-11587 Add 'Open In New Page' to Package Map area

The code for the Package Map display is upgraded to support
the function of 'Open In New Page'.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
HPCC-11587 Revise based on review comments

1. Removed 3 groups of 'initalized' lines;
2. Switch to the deferred/promise style: added 'then' functions;
Moved data processing code from old callback functions to the
'then' functions; Changed 'error' branch args;
3. Removed ESP Exception handling code since the exceptions
have been handled inside the ESPRequest.js. Also removed the
code for checking the status code of ESP response since the
status code has not been used to indicate an error.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
HPCC-11587 Remove extra lines and add return statements

Those changes are based on the last review comments for better
coding practice.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
Merge pull request #6238 from wangkx/h11587

HPCC-11587 Add 'Open In New Page' to Package Map area

Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>