Added  'date' field to DB table; fixes

* This new field will gradually replace the usage of mtime/ctime fields from
  the file system
* Added a Gruntfile with basic tasks
* Fixed some bugs in migrations
* Added migration for date field of existing files