Implement attachment processing

Closes #208.

Signed-off-by: Richard Marko <rmarko@redhat.com>