LPS-36650 added putErrorMessage and putStatus to JSONObject

Hide the implementation of the underlying JSON pattern that is used to sending errors.
LPS-36650 Added validateFirstLayout check when rearranging layouts

Prevent a non FIRST_PAGEABLE layout to end up being at first position.
LPS-36650 AutoGenerated