added toJSONSafe method to core.
Merge branch 'master' of github.com:IdeaBlade/Breeze