added the API call to register a license in ajax.php. Made the download button in the popup window send the correct media id.
Merge branch 'FMPRO-67' into sprint-3

Add the API call to register licenses.