Import ParameterDirectives from spray

This builds on top of https://github.com/akka/akka/pull/16091, so you can ignore the first commit.
I was not aware of poly-functions in scalaz, really good stuff :-)