Add flag for setting project on command line.
Fix bug when copying message uri.

This would have only ever copied the thread uri. This should fix that and allow
copying either the message or thread uri.