Added specialised send() action to return the affected entities in the payload for AJAX POST and PUT requests.
Added specialised send() action to return the affected entities in the payload for AJAX POST and PUT requests.

Improved the authenticateRequest() implemenation. Only verify to the referrer and the cookie token if the user is not logged in. This makes it easier to make authenticated REST request using basic auth.

timble/kodekit-platform,nooku/nooku-platform,timble/kodekit-platform,timble/kodekit-platform,nooku/nooku-platform,timble/kodekit-platform,nooku/nooku-platform,nooku/nooku-platform,timble/kodekit-platform,nooku/nooku-platform