[REFACTOR] Minor code cleanup
[REFACTOR] Minor code cleanup

[REFACTOR] More logical check orders
[REFACTOR] 'action' is only valid for Data API
[REFACTOR] Use generateSignature() for Questions in the Assess path

Signed-off-by: Olivier Mehani <9858fe98d2c7f5f35e0d2a08f134cfc58afd42d3@learnosity.com>

Learnosity/learnosity-sdk-php,Learnosity/learnosity-sdk-php