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).
Merge pull request #2 from MartinStepar/master

Fixed Nette 2.1 support and some JSON encoding bugs.