Added ajax hook to customize data serialization

Enabled deep object serialization by default