Improved session management. Now we return after selectedhost request and storage the task id in session variable to check its status in next requests. Added status option to check the task status. Deleted manage_taskid function not needed.
Improved session management. Now we set an interval to check the task status and if so, show the result in html page.