[FLINK-1249] [APIs] [compiler] Add custom partitioner for CoGroup

Java AP support done, Scala API support pending