Removed the functions 'get_license_text_from_api' and 'get_license_name_from_api' and introduce the 'get_license_details_from_api' which will return the dje_license_name and the license context as a list

Reason for doing this is to have one api call to get all the information instead of having to call twice.

However, there are still refactoring work that need to be done.