Fixed build.gradle for recent gradle versions.

Preveously it was possible to use `ext.prop` syntax, but
it was (AFAIR) deprecated and now we should use `project.ext.prop`.
Added .gitignore for gradle and intellij.
Fixed dates in JSON.

The date was without quotes and wasn't recognized as JSON type which
led to invalid JSON format.