Support folder other than INBOX

Add folder parameter that defaults to "INBOX"

(migrated from https://github.com/elasticsearch/logstash/pull/921 using `git am`)

I modified the committer to match @herver's correct email address