Fix percentiles on metrics filter
Added option to disable certificate validation

If a IMAP-server is using a self-signed certificate, this patch adds a "verify_cert" option to the module that is by default set to true (old behavior), but if set to false it will disable the verification check. The result is that IMAP TLS with self-signed certificate will not crash logstash.
Added option to disable certificate validation
New collectd codec to go with the new and improved multithreaded udp input plugin.  This makes the collectd input plugin obsolete.

# The Logstash input configuration can be as simple as:

```
input {
  udp {
    port => 28526
    buffer_size => 1452
    codec => collectd { }
  }
}
```
Figured out why `@types` wasn't initializing before register.  It needed to be above `super` (thanks @jordansissel)
Add tests for the collectd codec
Merge pull request #1 from pieterlexis/collectd-untergeek

Add tests for the collectd codec
Added warning when registering insecure state
Fix setup_java so $JAVA_HOME can be used.
correct copy destination to $basedir
Merge remote-tracking branch 'upstream/master'
Handle $JAVACMD properly while still respecting $JAVA_HOME
apply on_success actions only when date parsing succeed
Fix spec failures on non english systems. Solves #1247
Add comment to document the percentile
fix for undefined method + for nil:NilClass for invalid paramters
Start ES embedded server before creating a client.

This resolves a startup-delay problem where Node/Transport protocols
would attempt to find a master before continuing, having no master,
After this patch:
waits for a timeout.

Manual test:
    % time bin/logstash -e 'input { generator {  count => 1 } } output { elasticsearch { embedded => true } }'

Before this patch:
    WARN: org.elasticsearch.discovery: [logstash-ds4172-27071-2010]
    waited for 30s and no initial state was set by the discovery

    bin/logstash -e   20.50s user 0.70s system 45% cpu 46.793 total

After this patch:
    bin/logstash -e   21.53s user 0.52s system 115% cpu 19.070 total
Make embedded => true respect `bind_host` setting.
Copy-paste typo fix
Add LS_LOG_DIR option

This option allows to set a different directory where the 3 logfiles will be placed.