Fixed support of Nette 2.1 (reflected changes in Nette\Database).
Fixed custom JSON stringify function to properly encoding some special chars.
Fixed detection of JSON object support (some browsers have JSON object located in window.JSON).