refactoring. #48

Move AttachmentUtil module lib to models.
Add RSpec.
- Summary class