Change Log: 2013-01-03-B

Code clean up and refactoring
1: Created an independent array to hold attachments
2: Logged attachment file names through watchdog
3: Assign value to message attachments array only if attachments array
is non-empty
4: Used similar approach to assigning array values to message body and
attachments