Add support for attachments, fix view url and add .gitignore