Fixed bugs in default cache clearing, created new Attach field type for attachments and other minor fixes with file uploads