add .idea directory in .gitignore
add mongoid support for attachment rake tasks