request: error handling and data from onLoad

The onLoad handler may have already parsed the data and did some transformations.
We don't need to parse it again hence the check if typeof data == 'object'.

Added an event "onError" called when the server returns an error
Merge pull request #27 from kktos/master

Grird.request; Allow the onLoad to parse and transform the data and add an onError