Added method to get issue path.
Moved most of attachment stuff to package.