changed attachments' id from UUID to UUID + extension.
changed uploaded directory structure.
before:
  all files are stored in uploaded/images/ or uploaded/etc/
after:
  all files are stored in uploaded/images/yyyymm/dd/ or uploaded/etc/yyyymm/dd/
added 'gif' to image file types